I am a bit confused. If you see an EOS then your either done the expression
or have made it legal to have it in the middle of an expression (i do it all
the time such as IF RValue mEOS CodeBlock which allows the {} after the if
to be many lines ahead)
Lets take your example.
def myfunc {
x =
If your parser knows that it's dealing with a statement, you could try
lexical feedback (look up "lexical tie-ins" in the bison docs, and
google "scanner feedback" or "lexical feedback"). The parser sets a flag
to tell the lexer that it's inside a statement, and the lexer then
returns the NL wh
Hi,
I am pretty sure bison cannot simply ignore tokens. However, I don't know
what's the usual flex/bison pattern to solve this issue.
I am implementing a parser for a language that terminates statements with
a newline, however, the newline doesn't always terminate statements...
only after a s