Skip to main content

Language specification

This chapter covers the following topics:

Lexical structure

  • Basic syntax
    • code comments
    • whitespace
    • splitting lines using |

Type system

Execution model

  • Variables: local variables, func parameters, module members, class members
  • Functions: module functions, class functions, assembly functions (chombit and intrinsic)
  • Statements: assignment, function call, return, loop/drop/lift, if, break
  • Expressions: literal values, operators, function-like operators such as to_byte(x)

Scopes

Memory management