[erlang-patches] New yecc:file/2 option: parsermodule
Alceste Scalas
alceste@REDACTED
Thu Feb 14 14:36:16 CET 2008
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@REDACTED>
CRS4 - http://www.crs4.it/
More information about the erlang-patches
mailing list