LOOKAHEAD() Problem
Brought to you by:
alec
Hi!
I need som help om this.
(void) PARAM_LIST(bool bSpecialFunction)
{
(LOOKAHEAD({ bSpecialFunction }) <ID>
|
(TmpVal = EXPRESSION() (<SEMICOLON> EXPRESSION
() )*)?)
}
When I compile this with CppCC I end up with this code:
bool cppcc::LonParser::__la_PARAM_LIST_ () throw
(ScanException)
{
if (( bSpecialFunction )
) {
bSpecialFunction is used in __la_PARAM_LIST_ () where
it's not known and thus the parser does not compile. It's
also used in the PARAM_LIST (..) function but that is ok.
What am I doing wrong? I think I have done the same as
in Figure 19 in the docs.
Thanks in advance!
Torsten
torsten@cs.lth.se