Hi Ian,

When we were looking at my grammar patches you asked why I didn't just
make extends: a grammar method and do [some-grammar extends:
some-other-grammar] instead of adding an EXTENDS: keyword as I did in
my jolt2-fixes.patch.

I remember the answer now.  The grammar is finalised after the closing
right brace, which causes an error if any of the new productions refer
to the base grammar (since the new grammar doesn't yet know that it
*has* a base grammar).  Adding EXTENDS: was the cheapest way I could
think of importing the base grammar before the new grammar was
finalised.

Hope this helps,

-- 
Michael FIG <[EMAIL PROTECTED]> //\
   http://michael.fig.org/    \//

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to