You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently every statement MUST end with a Semicolon, or else there will be an unexpected EOF exception.
In the real world, for single statements this Semicolon is optional. Oracle JDBC even refuses to work with a trailing Semicolon.
Would it be possible to terminate a statement by ";" | <EOF> | "\n\n" for practical reasons? (Then there is GO and / ...)
Alternatively we could keep a Pure Grammar and put a Tainted Grammar beside. I love pure after all but still wait to experience it in real life.
The text was updated successfully, but these errors were encountered:
The spec is clear that we need a semicolon. Add an flag to not need it. So the purity of the grammar is a must and any short-cut we take should be controlled by a flag.
Actually, just add a separate rule (preferably in a separate fragment file) that simply does not have the semicolon - instead use EOF. In JavaCC, you can call any production directly so you can just call this new one
Currently every statement MUST end with a Semicolon, or else there will be an
unexpected EOF
exception.In the real world, for single statements this Semicolon is optional. Oracle JDBC even refuses to work with a trailing Semicolon.
Would it be possible to terminate a statement by
";" | <EOF> | "\n\n"
for practical reasons? (Then there isGO
and/
...)Alternatively we could keep a Pure Grammar and put a Tainted Grammar beside. I love pure after all but still wait to experience it in real life.
The text was updated successfully, but these errors were encountered: