Browse thread
There's an elephant in the room: Solution to sharing a symbol table
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Joel Reymont <joelr1@g...> |
| Subject: | Re: [Menhir-list] There's an elephant in the room: Solution to sharing a symbol table |
I'm hurt! It cannot be this easy. Thank you Francois! On May 2, 2007, at 8:03 AM, Francois Pottier wrote: > Well, if the parser is parameterized over "T : sig val tab: ... end", > then you could write something like > > (* assuming "tab" is defined here *) > > let parser str = > let lexbuf = Lexing.from_string str in > let module P = EasyParser.Make (struct let tab = tab end) in > P.program (token tab) lexbuf -- http://wagerlabs.com/