Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: David Teller <david.teller@univ-orleans.fr>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Building a parser with Camlp4
Date: Wed, 28 Nov 2007 10:57:10 +0100	[thread overview]
Message-ID: <1196243387-sup-4653@port-ext2.ensta.fr> (raw)
In-Reply-To: <1196234040.6361.7.camel@Blefuscu>

Excerpts from David Teller's message of Wed Nov 28 08:14:00 +0100 2007:
>      Hi list (Nicolas Pouillard, in particular),
Hi,

>  I'll probably need to rewrite my (not-fully-complete-yet) parser for
> JavaScript 2 and I'm considering using Camlp4 as a parser generator for
> a completely-non-OCaml target language. Now, before I do that, I have a
> few questions in mind:
> 
> * What is the power of Camlp4 ? The documentation says LL(1+epsilon) but
> the examples look like LL(k) with a possibly large k.

Yes `k' is the number of terminals at the beginning of a rule.

> * How do I plug-in a lexer written with ULex ?

It don't remember but cduce does that, and is updated to the new version of Camlp4.

> * Camlp4 looks relatively slow -- is it much slower than Yacc ?

Yes, that's the cost of dynamic extensibility.
-- 
Nicolas Pouillard aka Ertai


  reply	other threads:[~2007-11-28  9:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28  7:14 David Teller
2007-11-28  9:57 ` Nicolas Pouillard [this message]
2007-11-28 12:38   ` [Caml-list] " Yitzhak Mandelbaum
2007-12-08 14:02     ` David Teller

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=1196243387-sup-4653@port-ext2.ensta.fr \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=david.teller@univ-orleans.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