[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reusing Grammars (howto use grammars in grammars)



Hi Tim,

I got the hint. I filed an enhancement ticket (http://sablecc.org/ticket/95) about it. I'm struggling to get SableCC 4 out, so I will resist the feature creep temptation which has already delayed me more than enough. I've put SableCC 5 as the target milestone.

When you think about it, you soon realize that the whole idea of grammar reuse could be quite powerful, but it could also be a programmer nightmare, in complex cases, if done in a simplistic manner (à la C #include<...>). I think that this feature requires careful design, so as to be elegant, robust, and powerful. Any discussion about it is welcome! Yet, I will resist as much as possible from getting personally involved into it; my current #1 priority is SableCC 4 source code. The upcoming alpha 5 release will contain the new lexer generator (including the ObjectMacro system for retargeting the back-end to new languages).

Have fun!

Etienne

Timothy Washington a écrit :
...
Reusing grammars would be a nice feature to have in Sablecc4 ( hint hint ;). Thanks for the feedback.
-- 
Etienne M. Gagnon, Ph.D.
SableCC:                                            http://sablecc.org
SableVM:                                            http://sablevm.org

Attachment: signature.asc
Description: OpenPGP digital signature