projects
/
Faustine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update readme, install and license files.
[Faustine.git]
/
interpretor
/
lexer.mll
diff --git
a/interpretor/lexer.mll
b/interpretor/lexer.mll
index
9659a41
..
353712a
100644
(file)
--- a/
interpretor/lexer.mll
+++ b/
interpretor/lexer.mll
@@
-10,12
+10,11
@@
rule token = parse
| "-" { IDENT Sub}
| "*" { IDENT Mul}
| "/" { IDENT Div}
| "-" { IDENT Sub}
| "*" { IDENT Mul}
| "/" { IDENT Div}
-| "^" { IDENT Power}
| "_" { IDENT Pass}
| "!" { IDENT Stop}
| "&" { IDENT And}
| "|" { IDENT Or}
| "_" { IDENT Pass}
| "!" { IDENT Stop}
| "&" { IDENT And}
| "|" { IDENT Or}
-| "
xor"
{ IDENT Xor}
+| "
^"
{ IDENT Xor}
| "mem" { IDENT Mem}
| "@" { IDENT Delay}
| "floor" { IDENT Floor}
| "mem" { IDENT Mem}
| "@" { IDENT Delay}
| "floor" { IDENT Floor}
@@
-34,9
+33,9
@@
rule token = parse
| "sqrt" { IDENT Sqrt}
| "log" { IDENT Ln}
| "logten" { IDENT Lg}
| "sqrt" { IDENT Sqrt}
| "log" { IDENT Ln}
| "logten" { IDENT Lg}
-| "pow
"
{ IDENT Power}
+| "pow
f"
{ IDENT Power}
| "abs" { IDENT Abs}
| "abs" { IDENT Abs}
-| "fmod
"
{ IDENT Fmod}
+| "fmod
f"
{ IDENT Fmod}
| "%" { IDENT Mod}
| "remainder" { IDENT Remainder}
| "vectorize" { IDENT Vectorize}
| "%" { IDENT Mod}
| "remainder" { IDENT Remainder}
| "vectorize" { IDENT Vectorize}
@@
-49,6
+48,8
@@
rule token = parse
| "<=" { IDENT Leq}
| "==" { IDENT Eq}
| "!=" { IDENT Neq}
| "<=" { IDENT Leq}
| "==" { IDENT Eq}
| "!=" { IDENT Neq}
+| "<<" { IDENT Shl}
+| ">>" { IDENT Shr}
| "max" { IDENT Max}
| "min" { IDENT Min}
| "prefix" { IDENT Prefix}
| "max" { IDENT Max}
| "min" { IDENT Min}
| "prefix" { IDENT Prefix}
@@
-57,11
+58,9
@@
rule token = parse
| "rdtable" { IDENT Rdtable}
| "rwtable" { IDENT Rwtable}
| "rdtable" { IDENT Rdtable}
| "rwtable" { IDENT Rwtable}
-
| ['0'-'9']+ as a { CONST a }
| '.' { POINT }
| ['0'-'9']+ as a { CONST a }
| '.' { POINT }
-
| '(' { LPAR }
| ')' { RPAR }
| ',' { PAR }
| '(' { LPAR }
| ')' { RPAR }
| ',' { PAR }