New yecc:file/2 option: parsermodule

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

New yecc:file/2 option: parsermodule

Alceste Scalas-3
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 - http://www.crs4.it/



Reply | Threaded
Open this post in threaded view
|

Oops! (was: New yecc:file/2 option: parsermodule)

Alceste Scalas-3
On 14/02/2008 at 14.36 +0100, Alceste Scalas wrote:
> the following patch adds a new option to yecc:file/2:
> [...]

Oops!  Sorry, I clicked on the "send" button by mistake.  The correct
email will arrive in a few seconds.
--
Alceste Scalas <alceste>
CRS4 - http://www.crs4.it/