Patrick R. Michaud wrote:

I'll gladly add PAST::Stmt and PAST::Exp nodes if that's at all
useful.  Just because they're there doesn't mean a compiler has to
use them.  :-)

Well, I came to the conclusion that PAST::Exp was useless a while ago. (Its entire point of existence was as a dummy node to be factored out at the PAST-to-POST stage.) I do think PAST::Stmt is useful, but I want to take a stab at refactoring it out first.

Oh, I should have mentioned that the patch I sent in to remove the dummy 'root' rule from the POST::Grammar was part of what was making Punie work (because Punie's top-level node isn't a PAST::Block, it's a PAST::Stmts). I can refactor that out, but in this case it seemed to make more sense to refactor the compiler tool (since the other languages still worked with the change).

I'm working on some refactors of HLLCompiler and
PAST right now, I don't think any of these will break existing code.

Break away. I'm fine with the implementation shifting under the Punie port, since it means progress.

Allison

Reply via email to