From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA00885; Mon, 2 Sep 2002 15:40:05 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA01091 for ; Mon, 2 Sep 2002 15:40:04 +0200 (MET DST) Received: from hirsch.in-berlin.de (hirsch.in-berlin.de [192.109.42.6]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g82De2r03407 for ; Mon, 2 Sep 2002 15:40:03 +0200 (MET DST) Received: from hirsch.in-berlin.de (localhost [127.0.0.1]) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id g82De2iT012615 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Mon, 2 Sep 2002 15:40:02 +0200 Received: (from uucp@localhost) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with UUCP id g82De1A2012596; Mon, 2 Sep 2002 15:40:01 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: caml-list@inria.fr Received: from localhost (oliver@localhost) by first.in-berlin.de (8.7.6/8.7.3) with SMTP id OAA00157; Mon, 2 Sep 2002 14:35:33 +0200 Date: Mon, 2 Sep 2002 14:35:32 +0200 (MET DST) From: Oliver Bandel To: Remi VANICAT cc: caml-list@inria.fr Subject: Re: [Caml-list] Genlex - and which parser? In-Reply-To: <87fzwticaz.dlv@wanadoo.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello Rémi, On Mon, 2 Sep 2002, Remi VANICAT wrote: > Oliver Bandel writes: [...] > > Which parser can be used together with Genlex? > > Is it ocamlyacc? Or others? > > ocamlyacc goes with ocamllex. parser that goes with Genlex are stream > parser, describe in chapter 2 of the Camlp4 reference manual and > chapter 2 of the Camlp4 tutorial Hmhhh in the campl4-tutorial/-reference they explain an other Lexer (Plexer). I think it's similar. Will Genlex not be used? Or is Plexer based on Genlex? Any way, thanks for your hint. Some additional words: In the camlp4-tutorial there is an example for programming a simple calculator. I didn't expect to get a working solution/example on page 9 of the tutorial. That's great! I have looked for such tools for many years and now I have found it. :) Again, as I said about OCaml, I can say about Camlp4, that it's a great piece of work, what the developpers/researchers have done in providing such a great language and tools. If I think about how to write such stuff with lex/yacc in C, and then look at the power of Ocaml wow, then I more and more see that writing C (and it's followers) are the middle- ages of programming. Ciao, Oliver P.S.: I think it's now time to write DSLs. :) ------------------- 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