projects
/
Faustine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bugs in interpreter/Makefile.
[Faustine.git]
/
interpretor
/
lexer.mll
diff --git
a/interpretor/lexer.mll
b/interpretor/lexer.mll
index
c6a7cb5
..
3cb9847
100644
(file)
--- a/
interpretor/lexer.mll
+++ b/
interpretor/lexer.mll
@@
-7,7
+7,7
@@
rule token = parse
[' ' '\t' '\n' ] { token lexbuf }
| "+" { IDENT Add}
[' ' '\t' '\n' ] { token lexbuf }
| "+" { IDENT Add}
-| "-" { IDENT Su
p
}
+| "-" { IDENT Su
b
}
| "*" { IDENT Mul}
| "/" { IDENT Div}
| "_" { IDENT Pass}
| "*" { IDENT Mul}
| "/" { IDENT Div}
| "_" { IDENT Pass}
@@
-19,7
+19,7
@@
rule token = parse
| "sin" { IDENT Sin}
| "cos" { IDENT Cos}
| "atan" { IDENT Atan}
| "sin" { IDENT Sin}
| "cos" { IDENT Cos}
| "atan" { IDENT Atan}
-| "atantwo" { IDENT Atan
two
}
+| "atantwo" { IDENT Atan
2
}
| "sqrt" { IDENT Sqrt}
| "rdtable" { IDENT Rdtable}
| "%" { IDENT Mod}
| "sqrt" { IDENT Sqrt}
| "rdtable" { IDENT Rdtable}
| "%" { IDENT Mod}
@@
-29,9
+29,11
@@
rule token = parse
| "serialize" { IDENT Serialize}
| ">" { IDENT Larger}
| "<" { IDENT Smaller}
| "serialize" { IDENT Serialize}
| ">" { IDENT Larger}
| "<" { IDENT Smaller}
+| "max" { IDENT Max}
+| "min" { IDENT Min}
| "prefix" { IDENT Prefix}
| "prefix" { IDENT Prefix}
-| "selecttwo" { IDENT Select
two
}
-| "selectthree" { IDENT Select
three
}
+| "selecttwo" { IDENT Select
2
}
+| "selectthree" { IDENT Select
3
}
| ['0'-'9']+ as a { CONST a }
| ['0'-'9']+ as a { CONST a }