Version française
Home     About     Download     Resources     Contact us    
Browse thread
Running several parsers in a single runtime (nethttpd, Menhir)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] Running several parsers in a single runtime (nethttpd, Menhir)
On 3/30/07, Joel Reymont <joelr1@gmail.com> wrote:
> Folks,
>
> It appears that Parsing uses global state, e.g.
>
>    let rhs_loc n = (Parsing.rhs_start_pos n, Parsing.rhs_end_pos n)
>
> I'm building an "app server" to provide translation services to Ruby/
> Rails . How would you suggest I work around the global state issue?
> Would I need to switch to Menhir?

Yes Menhir is reentrant.

-- 
Nicolas Pouillard