caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Sharing a symbol table between a lexer and a Menhir parser
@ 2007-05-01 17:56 Joel Reymont
  0 siblings, 0 replies; only message in thread
From: Joel Reymont @ 2007-05-01 17:56 UTC (permalink / raw)
  To: Caml List; +Cc: menhir-list

Would someone kindly show me an example of how to do this?

Assuming that my parser function looks like this

let parse str =
   Symtab.reset ();
   let lexbuf = Lexing.from_string str in
   Easy_parser.program Easy_lexer.token lexbuf

I would like to give Easy_lexer.token the same symbol table that was  
used to specialize the parser functor.

I would this hard to impossible for some reason.

	Thanks, Joel

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-01 17:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-01 17:56 Sharing a symbol table between a lexer and a Menhir parser Joel Reymont

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).