[erlang-patches] New yecc:file/2 option: parserpackage

Alceste Scalas alceste@REDACTED
Thu Feb 14 14:43:46 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yecc-parserpackage.diff
Type: text/x-patch
Size: 2570 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20080214/a37ba2ce/attachment.bin>


More information about the erlang-patches mailing list