Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  New yecc:file/2 option: parserpackage (R12B updates)

Guest
Posted: Fri Feb 15, 2008 11:08 am Reply with quote
Guest
Il giorno gio, 14/02/2008 alle 17.19 +0100, Alceste Scalas ha scritto:
> Il giorno gio, 14/02/2008 alle 14.43 +0100, Alceste Scalas ha scritto:
> > 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).
>
> The following patch may help, too: it makes the generated parsers always
> use absolute module references, by adding a leading dot to some function
> calls (both in yecc.erl and yeccpre.hrl).

D'oh, the previous patches were only tested with OTP-R11B-5 and don't
apply cleanly on newer OTP releases. I'm sorry!

Here's an updated patch, tested with OTP-R12B-1, that implements both
the new 'parserpackage' option and absolute module references in
generated parsers.

Regards,

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


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