List Info

Thread: "ocaml_beginners"::[] Lexing/yaccing in OCaml




"ocaml_beginners"::[] Lexing/yaccing in OCaml
country flaguser name
United States
2007-08-20 09:33:34

Hi,

What are the recommended tools these days to handle lexing/yaccing?
Ocamllex/Ocamlyacc come with default, but I see some chatter about
Menhir for yaccing, and I do need to lex unicode documents.

Thanks in advance!
C.S.

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] Lexing/yaccing in OCaml
country flaguser name
United States
2007-08-20 10:31:48

On Mon, 20 Aug 2007, cultural_sublimation wrote:

> Hi,
>
> What are the recommended tools these days to handle lexing/yaccing?
>; Ocamllex/Ocamlyacc come with default, but I see some chatter about
> Menhir for yaccing, and I do need to lex unicode documents.

If you're looking to do unicode lexing, then you'd want to look at Alain
Frisch's ulex <http://www.cduce.org/download.html#side&gt;. As for parsing,
iI suppose it really depends on what you want your parser to do...
Ocamlyacc is the old standard, and pretty decent, but as you mentioned,
menhir is the new hotness (I haven't played with it yet, so I can't tell
you anything about it). There's also dypgen, a GLR parser for generating
self-extensible grammars, there's camlp4 for stream parsing, and a few
parser combinator libraries available, e.g. the Cf_parser part of OCamlNAE
<http://sourceforge.net/projects/ocnae/&gt;.

William D. Neumann

---

"There's just so many extra children, we could just feed the
children to these tigers. We don't need them, we're not doing
anything with them.

Tigers are noble and sleek; children are loud and messy.&quot;

-- Neko Case

Life is unfair. Kill yourself or get over it.
-- Black Box Recorder

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] Lexing/yaccing in OCaml
country flaguser name
United Kingdom
2007-08-21 05:18:35

On Mon, Aug 20, 2007 at 02:33:34PM -0000, cultural_sublimation wrote:
&gt; What are the recommended tools these days to handle lexing/yaccing?
>; Ocamllex/Ocamlyacc come with default, but I see some chatter about
&gt; Menhir for yaccing, and I do need to lex unicode documents.

For the latter, take a look at ulex.

Rich.

--
Richard Jones
Red Hat

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )