[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
strange error
I get a strange error in the following grammar:
Tokens
star = '*';
plus = '+';
semi = ';';
int = (['0'..'9'])+;
blank = (' ' | 13 | 10 | 9)+;
Ignored Tokens
blank;
Productions
expr = mexpr (plus mexpr)* semi;
mexpr = atom (star atom)*;
atom = int;
it says on line [12,16] ';' expected
This is on the line starting with 'expr ='
I don't know what causes this. Does anyone else do ?
Thanks in advance.
-------------------
Pieter van der Spek
---- West Consulting B.V. - www.west.nl
---- Tu Delft / Computer Science - www.tudelft.nl