Re: PGE now supports grammars, built-in rules

2005-07-03 Thread Patrick R. Michaud
On Sun, Jul 03, 2005 at 11:08:56AM -0400, Will Coleda wrote: > When I was compiling the rules, they weren't going where I thought > they were going. This was because I stole code from compilers/pge/ > demo.pir improperly; there is a gname variable in there that's a PMC. No, it's a string:

Re: PGE now supports grammars, built-in rules

2005-07-03 Thread Will Coleda
When I was compiling the rules, they weren't going where I thought they were going. This was because I stole code from compilers/pge/ demo.pir improperly; there is a gname variable in there that's a PMC. If you change it to a string instead, it seems to work fine. Apparently as a PMC it was

Re: PGE now supports grammars, built-in rules

2005-07-01 Thread Patrick R. Michaud
On Thu, Jun 30, 2005 at 11:46:55PM -0400, Allison Randal wrote: > On Jun 25, 2005, at 20:38, Patrick R. Michaud wrote: > > >I've just checked in changes to PGE that enable it to support > >grammars, as well as some more built-in rules... > > These are totally awesome. On the plane today, I conver

Re: PGE now supports grammars, built-in rules

2005-06-30 Thread Allison Randal
On Jun 25, 2005, at 20:38, Patrick R. Michaud wrote: I've just checked in changes to PGE that enable it to support grammars, as well as some more built-in rules... These are totally awesome. On the plane today, I converted the Punie parser over to use the shiny new grammars. My one frustratio

PGE now supports grammars, built-in rules

2005-06-25 Thread Patrick R. Michaud
I've just checked in changes to PGE that enable it to support grammars, as well as some more built-in rules (, , , , etc.). To create a new grammar, just create a subclass of "PGE::Rule" and install new rules into the new grammar's namespace: .sub main @MAIN load_bytecode "PGE.pbc"