Version française
Home     About     Download     Resources     Contact us    
Browse thread
ulex+ocamlyacc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <Alain.Frisch@i...>
Subject: Re: [Caml-list] ulex+ocamlyacc
Anastasia Gornostaeva wrote:
> Hello.
> 
> How I can combinate ocamlyacc and ulex (http://www.cduce.org/download/)
> instead of *.mll?

As long as you don't use the symbol_start-like functions from Parsing, you
can do something like:

  Parser.main (fun _ -> Lexer.token lexbuf) (Lexing.from_string "dummy")

(The ocamlyacc generated parser don't really use themselves the lexbuf 
argument...)

Hope this helps.

-- Alain