Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Alain.Frisch@ens.fr
To: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
Cc: Daniel.Andor@physics.org, Caml list <caml-list@inria.fr>
Subject: Re: [Caml-list] camlp4 vs. ocamllex/yacc?
Date: Fri, 24 Jan 2003 17:21:53 +0100 (MET)	[thread overview]
Message-ID: <Pine.SOL.4.44.0301241719270.21079-100000@clipper.ens.fr> (raw)
In-Reply-To: <15921.22474.602526.543452@lri.lri.fr>

On Fri, 24 Jan 2003, Jean-Christophe Filliatre wrote:

>  > What are the advantages/disadvantages of using camlp4 vs. a combination of
>  > ocamllex and ocamlyacc?
>
> For  having  used both  of  them intensively,  I  see  (at least)  the
> following advantages of camlp4:
>
>  - it comes with a lexer, saving you the burden of writing one
>    (this lexer conforms to ocaml lexical conventions; for prototype
>    implementations, it is usually fine)
>
>  - it offers high level grammar constructors such as LIST0, LIST1,
>    OPT, ... It results in cleaner and more concise grammars.

I can add:
   - it provides automatic error messages, explaining which rule failed,
     and what was expected

and a disadvantage:
   - no detection of 'conflicts' in grammars


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


  reply	other threads:[~2003-01-24 18:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24 14:15 Daniel Andor
2003-01-24 14:32 ` Jacques Carette
2003-01-24 15:12 ` Jean-Christophe Filliatre
2003-01-24 16:21   ` Alain.Frisch [this message]
2003-01-26  2:50   ` Ed L Cashin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SOL.4.44.0301241719270.21079-100000@clipper.ens.fr \
    --to=alain.frisch@ens.fr \
    --cc=Daniel.Andor@physics.org \
    --cc=Jean-Christophe.Filliatre@lri.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox