Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  New yecc:file/2 option: parsermodule

Guest
Posted: Thu Feb 14, 2008 2:53 pm Reply with quote
Guest
Hello,

the following patch adds a new option to yecc:file/2:

{parserpackage, ParserPackage}.
Use ParserPackage as the package of the Erlang parser
code that is generated. The default ("") is not to put
package names in front of the parser module.

This option allows to generate parsers within Erlang packages: for
example, given the file src/foo/bar/parser.yrl, a call like

yecc:file(parser, [{parserpackage, 'foo.bar'}])

will generate parser.erl with module 'foo.bar.parser' (instead of
'parser' alone).

Regards,

alceste
--
Alceste Scalas <alceste@crs4.it>
CRS4 - http://www.crs4.it/

_______________________________________________
erlang-patches mailing list
erlang-patches@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-patches
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum