Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ocamllex+ocamlyacc and not parsing properly
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] ocamllex+ocamlyacc and not parsing properly
On Monday 08 August 2005 06:03, Jonathan Roewen wrote:
> BTW: A tutorial on these sorts of things (i.e. something a bit more
> complicated than the calculator example) would be great to have as a
> resource.

Given that the grammar is tiny and the lexer has almost as much OCaml code as 
lexing rules, I think this is a good candidate for not using lexing and 
parsing at all. If you wrote this as an OCaml function, how long would it be?

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists