Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] Ulex and dypgen
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-10-26 (19:09)
From: Emmanuel Onzon <emmanuel.onzon@e...>
Subject: Re: [Caml-list] Ulex and dypgen
>> is there a way to have menhir (or ocamlyacc) use a lexer produced with ulex?
> Actually, I've to pose the very same question for dypgen.

You can use ulex instead of ocamllex with dypgen now.
An example is included in the distribution.

I've changed the interfaces, now the type is :

val dyp_parse : ('a -> token) -> 'a -> your_tree list

instead of

val dyp_parse : (Lexing.lexbuf -> token) -> Lexing.lexbuf -> your_tree list


Emmanuel Onzon