caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: Emmanuel Onzon <emmanuel.onzon@ens-lyon.fr>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] 246 constructors?
Date: Mon, 07 May 2007 22:29:57 +1000	[thread overview]
Message-ID: <1178540997.6123.8.camel@rosella.wigram> (raw)
In-Reply-To: <20070507102110.hdvb0z4firk0ow0o@tadorne.ens-lyon.fr>

On Mon, 2007-05-07 at 10:21 +0200, Emmanuel Onzon wrote:

> I have just added an option -symbols-with-variants which makes dypgen use
> variants instead of constructors. (see the file CHANGES for other changes
> in this version)

Hi! You're the author right? I there a repository somewhere?
I have a couple of patches. To the lexer I added:

and ocaml_type = parse
  | "->" 
      { ocaml_code_buffer := (!ocaml_code_buffer) ^ "->";
        ocaml_type lexbuf
      }  
  
otherwise function types can't be properly lexed.
Probably be cool if the lexer was made a bit more
sophisticated .. for example I had

%token<...>...

which failed due to a lack of a space between token and <.

I also added:

  | "%type" blank { look_for_type:=true; KWD_TYPE }

in a vain attempt to get it to ignore my %type commands.

It should be possible to make it work with an ocamlyacc
spec with a bit of fiddling shouldn't it?


-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


  reply	other threads:[~2007-05-07 12:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070506210912.38195BC82@yquem.inria.fr>
2007-05-07  8:21 ` Emmanuel Onzon
2007-05-07 12:29   ` skaller [this message]
2007-05-06 19:49 skaller
2007-05-06 19:50 ` [Caml-list] " Jon Harrop
2007-05-06 20:20   ` skaller
2007-05-06 20:31     ` Till Varoquaux
2007-05-06 21:05       ` skaller
2007-05-06 21:11 ` Brian Hurt
2007-05-06 21:25   ` skaller
2007-05-06 22:16   ` Tom

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=1178540997.6123.8.camel@rosella.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@yquem.inria.fr \
    --cc=emmanuel.onzon@ens-lyon.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;
as well as URLs for NNTP newsgroup(s).