Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
[ANN] New release of Menhir
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Francois Pottier  
View profile  
 More options Sep 9 2008, 3:52 am
Newsgroups: fa.caml
From: Francois Pottier <Francois.Pott...@inria.fr>
Date: Tue, 09 Sep 2008 07:52:49 UTC
Local: Tues, Sep 9 2008 3:52 am
Subject: [Caml-list] [ANN] New release of Menhir

Hello all,

It is my pleasure to announce a new release of Menhir, with the following
main improvements over previous versions:

  --table       Menhir now supports producing table-based LR automata, in
                the tradition of yacc, bison, and ocamlyacc. This makes
                the generated parsers up to 5x smaller, and somewhat slower.

  --interpret   Menhir can now be used not just as a compiler, but also as
                an interpreter. It will read sentences off the standard
                input channel, parse them as per your grammar, and report
                an outcome. This should help debug grammars.

These new features were implemented by Guillaume Bau, Raja Boujbel, and
François Pottier. We would like to gratefully acknowledge the generous support
of Jane Street Capital LLC, who funded this endeavor through an ocaml summer
project.

As usual, the new release is available either through GODI, or as source code
at the following URL.

  http://cristal.inria.fr/~fpottier/menhir/

Enjoy! Comments and bug reports are welcome.

--
François Pottier
Francois.Pott...@inria.fr
http://cristal.inria.fr/~fpottier/

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[Menhir-list] [ANN] New release of Menhir" by Francois Pottier
Francois Pottier  
View profile  
 More options Sep 9 2008, 4:17 am
Newsgroups: fa.caml
From: Francois Pottier <Francois.Pott...@inria.fr>
Date: Tue, 09 Sep 2008 08:17:08 UTC
Local: Tues, Sep 9 2008 4:17 am
Subject: [Caml-list] Re: [Menhir-list] [ANN] New release of Menhir

Dear Julia,

On Tue, Sep 09, 2008 at 10:09:55AM +0200, Julia Lawall wrote:
> I was very excited about this option, because it drops the size of the
> generated code for my parser from 61K LOC to 28K LOC.  But unfortunately
> it gives me:

> Unbound module MenhirLib.TableInterpreter.Make

> when I try to compile.

Yup. I didn't write the details in the announcement; maybe I should have.

When a parser is produced using --table, it is not quite stand-alone: it
must be linked with a new library, called MenhirLib. (This is analogous
to ocaml's Parsing module, which is part of the standard library.)

If you are using ocamlfind, this is quite easy: just add "-package menhirLib"
to your ocamlc/ocamlopt flags (for compiling and for linking), and add
"-linkpkg" to your ocamlc/ocamlopt flags (for linking).

If you do not wish to rely on ocamlfind, then things become slightly more
complicated, since you must tell ocamlc/ocamlopt where MenhirLib is installed.
Fortunately, Menhir itself can help you: it has three new command-line
switches, of the form --suggest-*, which cause it to print suggested flags.
The details are in Menhir's reference manual. The sample Makefile
(demos/Makefile.shared) offers an illustration.

Hope this helps,

--
François Pottier
Francois.Pott...@inria.fr
http://cristal.inria.fr/~fpottier/

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google