X-Git-Url: https://svn.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/73e86244c539dd6ff8af5d8527b11fde18c8d070..64fedf639ee3d2bd048028414097632726d24d42:/interpretor/lexer.mll diff --git a/interpretor/lexer.mll b/interpretor/lexer.mll index c6a7cb5..1c427a9 100644 --- a/interpretor/lexer.mll +++ b/interpretor/lexer.mll @@ -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} @@ -30,8 +30,8 @@ rule token = parse | ">" { IDENT Larger} | "<" { IDENT Smaller} | "prefix" { IDENT Prefix} -| "selecttwo" { IDENT Selecttwo} -| "selectthree" { IDENT Selectthree} +| "selecttwo" { IDENT Select2} +| "selectthree" { IDENT Select3} | ['0'-'9']+ as a { CONST a }