Open GoogleCodeExporter opened 9 years ago
Dmitriy,
Seems, that problem is not in getLiteral function. We want to write in lexer
something like this:
rule token = perse
| ident {some code for ident|kwd|else processing}
| "/*" {some code for comments processing}
| '\'' {some code for literal processing}
| _ {getLiteral lexbuf}
And in grammar we want to use literals with common prefix. E.g.
expr : expr '=' expr
strange_expr : ident '=>' expr
(*
NOT
strange_expr : ident '=' '>' expr
this case is works fine
*)
Is it possible?
Original comment by rsdpisuy@gmail.com
on 3 Jul 2013 at 7:21
Original issue reported on code.google.com by
polubelo...@gmail.com
on 3 Jul 2013 at 11:18