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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xleroy@p...>
Subject: Re: ocamlyacc question
> Is it possible to export a function from an ocamlyacc parser for use
> by another component of a compiler?  I have a function in parser.mly
> that I wish to use elsewhere, but the only way I can find to export it
> is to massage the generated parser.mli file with sed in my makefile.

There's currently no simple way (other than changing the generated
.mli) to export the function. Perhaps you could move the function in
question to another module.


- Xavier Leroy