Browse thread
Re: [Caml-list] Ulex and dypgen
- Emmanuel Onzon
[
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: | 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
Regards
Emmanuel Onzon