Fix the preprocessor compiling bug in interpretor/Makefile.
[Faustine.git] / interpretor / lexer.mll
index c6a7cb5..3cb9847 100644 (file)
@@ -7,7 +7,7 @@ rule token = parse
   [' ' '\t' '\n' ]                     { token lexbuf }
 
 | "+"                                   { IDENT Add}
-| "-"                                   { IDENT Sup}
+| "-"                                   { IDENT Sub}
 | "*"                                   { IDENT Mul}
 | "/"                                   { IDENT Div}
 | "_"                                   { IDENT Pass}
@@ -19,7 +19,7 @@ rule token = parse
 | "sin"                                 { IDENT Sin}
 | "cos"                                 { IDENT Cos}
 | "atan"                                { IDENT Atan}
-| "atantwo"                             { IDENT Atantwo}
+| "atantwo"                             { IDENT Atan2}
 | "sqrt"                                { IDENT Sqrt}
 | "rdtable"                             { IDENT Rdtable}
 | "%"                                   { IDENT Mod}
@@ -29,9 +29,11 @@ rule token = parse
 | "serialize"                           { IDENT Serialize}
 | ">"                                   { IDENT Larger}
 | "<"                                   { IDENT Smaller}
+| "max"                                        { IDENT Max}
+| "min"                                        { IDENT Min}
 | "prefix"                              { IDENT Prefix}
-| "selecttwo"                           { IDENT Selecttwo}
-| "selectthree"                         { IDENT Selectthree}  
+| "selecttwo"                           { IDENT Select2}
+| "selectthree"                         { IDENT Select3}  
 
 
 | ['0'-'9']+ as a                      { CONST a }