[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] 246 constructors? |
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