Commit 587e472f authored by Raphaël Cauderlier's avatar Raphaël Cauderlier
Browse files

Comment on desambiguation at lexing

parent b4b6631d
......@@ -8,9 +8,10 @@ let id = [ 'a'-'z' '_' '0'-'9' ] ['a'-'z' 'A'-'Z' '_' '0'-'9']*
rule token = parse
| [ ' ' '\t' ] { token lexbuf }
| '\n' { token lexbuf }
| '.'(id as s)"<=" { UPDATE (s) }
| '.'(id as s)":=" { FUPD(s) }
| '.'(id as s) { SELECT (s) }
(* The several meanings of "." are disambiguated at lexing *)
| '.' (id as s) ' '* "<=" { UPDATE (s) }
| '.' (id as s) ' '* ":=" { FUPD(s) }
| '.' (id as s) { SELECT (s) }
| '[' { LBRACK }
| ']' { RBRACK }
| ':' { COLUMN }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment