Browse thread
[Caml-list] ocamllex/yacc and camlp4
[
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: | 2004-06-17 (06:47) |
From: | Alain Frisch <Alain.Frisch@e...> |
Subject: | Re: [Caml-list] ocamllex/yacc and camlp4 |
On Thu, 17 Jun 2004, Pierre Weis wrote: > 1) ocamllex and ocamlyacc implementation technologies are damned fast > and it is difficult to compete with them using streams. As I understand it, the question was about implementing ocamllex/ocamlyacc frontend (parsing the specifications) and backend (producing OCaml code) using Camlp4, not about implementing lexers/parsers using Camlp4 grammars. I wrote a pa_ocamllex some time ago (and it is included in the OCaml distribution), but it is no longer in sync with new ocamllex features (capture variables). Using Camlp4 to parse the specifications has several advantages: simpler build procedure (no intermediate file to be generated), support for alternative syntaxes (e.g. the revised syntax). -- Alain ------------------- 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