* Code is compiled into a vm:📦:Package which contains the executable code, the constants, and the local name mappings. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
30 lines
457 B
Plaintext
30 lines
457 B
Plaintext
%%
|
|
[\r\n;]+ "EOL"
|
|
[a-zA-Z_][a-zA-Z0-9_]* "IDENT"
|
|
:[a-zA-Z_][a-zA-Z0-9_]* "SYM"
|
|
[0-9]+ "NUM"
|
|
"([^"]|\\[rnt"'\\])+"|'([^"]|\\[rnt"'\\])+' "STRING"
|
|
|
|
= "="
|
|
\|\| "||"
|
|
&& "&&"
|
|
< "<"
|
|
> ">"
|
|
<= "<="
|
|
>= ">="
|
|
!= "!="
|
|
== "=="
|
|
\+ "+"
|
|
\* "*"
|
|
/ "/"
|
|
- "-"
|
|
\( "("
|
|
\) ")"
|
|
\[ "["
|
|
\] "]"
|
|
\. "."
|
|
, ","
|
|
|
|
#[^\n]*$ ;
|
|
[\t ]+ ;
|