English
TRIK Studio language tokens
The language uses spaces, tabs, and line breaks outside of string literals only as separators between tokens — they do not affect the interpretation of expressions.
The language has the following keywords:
  • and
  • false
  • nil
  • not
  • or
  • true​
And the following operators:
1
+ - * / % ^ # & ~ | << >> // == ~= <= >= < > = ( ) { } [ ] ; : , . .. && ||
Copied!
String literals are written in either single or double-quotes. For example,
1
a = 'alo123'
2
a = "alo123"
Copied!
Integers are written either in decimal, octal, or hexadecimal. Hexadecimal numbers begin with the prefix 0x, octal numbers begin with the prefix 0. For example,
  • 3, 345 — decimal number
  • 0xff, 0xBEBADA — hexadecimal number
  • 07654321 — octal number
Real numbers are written either in conventional or exponential form. For example,
1
3.0
2
3.1416
3
314.16e-2
4
0.31416E1
5
34e1​
Copied!
Comments begin with -- and continue to the end of the line. For example,
1
a = 1; -- remark
Copied!
See the article about the syntax of expressions in the blocks:
Last modified 10mo ago
Export as PDF
Copy link