Saturday, May 27, 2006

May 27th, 2006 -- Ratchet MiniPerl6

The Pugs::Grammar::MiniPerl6 module was broken since the default setting of parsing option of Pugs::Compiler::Rule several days ago so that the ratchet option was turned off in it. Currently generates a module used no ratchet feature which is identical to that it used to do. So that I focused on it these days.

I fixed the ratchet Perl 5 emitter on backslashes and named capture yesterday. And, I've almost finished fixing the MiniPerl6 module itself.

The main parts are to revise the grammar and update the translator The former one including changing some rules into "token" and rewrite the others to fit the :sigspace. And the later part is to make it accept "token" and "regex" as well as "rule."

Another big change is a modifier ":p" on rule ProductionRule. Since ProductionRule is the top rule in the grammar, the match of it should start from the very begin of input string. Correspondingly, also translate it correctly.

I said that I "almost" finished fixing it. That means some of them are still broken and if you tried "make test" you will find the last test failed. I'll fix the temporary variable declaration as soon as possible. Stay tuned!


Post a Comment

Links to this post:

Create a Link

<< Home