Open yossigil opened 3 years ago
The Java grammar is sometimes intentionally stupid.... to make it easier to write a parser:
StatementNoShortIf >> StatementWithoutTrailingSubstatement | LabeledStatementNoShortIf | IfThenElseStatementNoShortIf | WhileStatementNoShortIf | ForStatementNoShortIf
Sounds a hack/ while the following requires refactoring: ``` WhileStatement >> "while" & "(" & Expression & ")" & Statement WhileStatementNoShortIf >> "while" & "(" & Expression & ")" & StatementNoShortIf ````
The Java grammar is sometimes intentionally stupid.... to make it easier to write a parser: