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
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-01-16 (06:15)
From: Alain Frisch <Alain.Frisch@i...>
Subject: Re: [Caml-list] ulex+ocamlyacc
Anastasia Gornostaeva wrote:
> Hello.
> How I can combinate ocamlyacc and ulex (
> 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 

Hope this helps.

-- Alain