caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ulex+ocamlyacc
@ 2005-01-15 20:38 Anastasia Gornostaeva
  2005-01-16  6:13 ` [Caml-list] ulex+ocamlyacc Alain Frisch
  0 siblings, 1 reply; 2+ messages in thread
From: Anastasia Gornostaeva @ 2005-01-15 20:38 UTC (permalink / raw)
  To: caml-list

Hello.

How I can combinate ocamlyacc and ulex (http://www.cduce.org/download/)
instead of *.mll?
Thanks.

ermine


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] ulex+ocamlyacc
  2005-01-15 20:38 ulex+ocamlyacc Anastasia Gornostaeva
@ 2005-01-16  6:13 ` Alain Frisch
  0 siblings, 0 replies; 2+ messages in thread
From: Alain Frisch @ 2005-01-16  6:13 UTC (permalink / raw)
  To: Anastasia Gornostaeva; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-16  6:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-15 20:38 ulex+ocamlyacc Anastasia Gornostaeva
2005-01-16  6:13 ` [Caml-list] ulex+ocamlyacc Alain Frisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).