* [Caml-list] ocamllex/yacc question...
@ 2004-09-17 17:15 Micha
0 siblings, 0 replies; only message in thread
From: Micha @ 2004-09-17 17:15 UTC (permalink / raw)
To: caml-list
Hi,
I have a little scanning/parsing problem and the solution which I tried was to
have empty productions in the grammar, which switch the lexer (setting a ref
to the new lexer function), like that:
use_lexer_1 : { switch_lexer 1 }
use_lexer_2 : { switch_lexer 2 }
special_id: use_lexer_1 token use_lexer_2 { ... }
...
This does not work, I think because of the look ahead. Is there another
solution to this (to switch lexing rules) ? Or is this a completly wrong
idea?
thanks
Michael
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-17 17:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-17 17:15 [Caml-list] ocamllex/yacc question Micha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).