X-Git-Url: https://scm.cri.mines-paristech.fr/git/Faustine.git/blobdiff_plain/9fdfd04e29fcefdb9120a4d9467827ceaf8dfaa0..42d607127a467ca737dd903ad007d50a54533cf0:/interpretor/lexer.mll?ds=sidebyside diff --git a/interpretor/lexer.mll b/interpretor/lexer.mll index 9659a41..46ce90d 100644 --- a/interpretor/lexer.mll +++ b/interpretor/lexer.mll @@ -49,6 +49,8 @@ rule token = parse | "<=" { IDENT Leq} | "==" { IDENT Eq} | "!=" { IDENT Neq} +| "<<" { IDENT Shl} +| ">>" { IDENT Shr} | "max" { IDENT Max} | "min" { IDENT Min} | "prefix" { IDENT Prefix} @@ -57,11 +59,9 @@ rule token = parse | "rdtable" { IDENT Rdtable} | "rwtable" { IDENT Rwtable} - | ['0'-'9']+ as a { CONST a } | '.' { POINT } - | '(' { LPAR } | ')' { RPAR } | ',' { PAR }