caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Lex and yacc
@ 2001-01-25  7:49 Alex Baretta
  2001-01-25 10:14 ` Markus Mottl
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Baretta @ 2001-01-25  7:49 UTC (permalink / raw)
  To: Ocaml Mailing List

I have used ocamllex and ocamlyacc to write lexers and parsers for a
few different variants of a lambda calculus, and I think they are
excellent tools. Yesterday, I tried to take advantage of the
experience I had by using Flex and Bison to write a lexer and parser
for the http protocol to be used in a proxy to be written in C. I read
the texinfo manual for both, and I have noticed that, while Bison
takes care to generate reentrant parsers, flex *apparently* generates
code that is inadequate on a multithreaded process with several open
input streams and several parsers running contemporarily (but you may
correct me if I am mistaken). I am pretty sure these problems do not
exists in ocamllex and ocamlyacc. Now, can you gurus teach me a way to
write my reentrant lexer and parser with the Ocaml tools and link the
result with a C application? (I am not sure the professor would accept
this solution, but if it feasible I might try to convince him... ;-)

Thanks for your time!

Alex



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-26 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-25  7:49 Lex and yacc Alex Baretta
2001-01-25 10:14 ` Markus Mottl

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