# Лексемы языка TRIK Studio

Язык использует **пробелы**, **табуляции** и **переводы строк** вне строковых литералов только как **разделители** между лексемами — влияния на интерпретацию выражений они не оказывают.

В языке есть следующие **ключевые слова**:

* and
* false
* nil
* not
* or
* true​

И следующие [операторы](/studio/programming-visual/expression-syntax/operators.md):

```lua
+ - * / % ^ # & ~ | << >> // == ~= <= >= < > = ( ) { } [ ] ; : , . .. && ||
```

**Строковые литералы** пишутся либо в одинарных, либо в двойных кавычках. Наприме&#x440;**,**

```lua
a = 'alo123'
a = "alo123"
```

**Целые числа** пишутся либо в десятичной, либо в восьмеричной, либо в шестнадцатеричной системе. Шестнадцатеричные числа начинаются с префикса `0x`, восьмеричные — с префикса `0`. Например,

* `3`, `345` — десятичные числа
* `0xff`, `0xBEBADA` — шестнадцатеричные числа
* `07654321` — восьмеричное число

**Вещественные числа** пишутся либо в общепринятой, либо в экспоненциальной форме. Например,

```
3.0
3.1416 
314.16e-2
0.31416E1 
34e1​
```

**Комментарии** начинаются с `--` и продолжаются до конца строки. Например,

```
a = 1; -- комментарий
```

О синтаксисе выражений в блоках читайте в статье

{% content-ref url="/pages/-M0P0kE4EwB9x-p35xad" %}
[Синтаксис выражений в блоках](/studio/programming-visual/expression-syntax.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.trikset.com/studio/programming-visual/expression-syntax/lexemes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
