[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: h e l p on grammars]
Wei Hu wrote:
> The last line is the one that got me totally confused. What is this
> prefix "XP"?
Don't have much time... Look in Thesis chapter 5/6 for discussion about
the implementation of the "?" "+" and "*" operators. Then read the
generated source code for .../node/X*PDeclSpecifier.java. This should
explain what grammar the parser is dealing with. The X* productions are
produced for implementing the above operators.
Good luck!
Etienne
--
Etienne M. Gagnon egagnon@j-meg.com
SableVM: http://www.sablevm.org/
SableCC: http://www.sablecc.org/