Skip to content

Lexical Analysis

skyrabbit edited this page Jun 13, 2019 · 2 revisions

Comments

mGroupy proccessor comments out from # to #

# TODO optimize #
# 1st line
  2nd line
  3rd line #

Documentation Comment #@Document ..#

Keywords

1st Group

Users cannot use it.

Kind Example
T Nil
Boolean True False
Operators 0 + - * /
Operators 1 = > <
Operators 2 and or not
Operators 3 exist all
Operators 4 -> => , $ @
Operators 5 () {} []
Operators 6 address_of value_of
Operators 7 "" ''

2nd Group

Users should not use it.

Kind Example
T free child parent
Boolean Unknown
Operators 0 % ^
Operators 1 >= <=
Operators 2 xor
Operators 8 .

Identifiers

Users should start names of identifiers with alphabets and can use alphabets, numbers and _.

Literals

Type Example
Number 3.14 -100
Boolean True False
Character 'A'
String "Hello"
=> x->x*x 2+
Group [1 2 3]
Namespace {nil := []}
Enumeration Number, Number