diff --git a/src/cz/zipek/sqflint/parser/SQFParser.jj b/src/cz/zipek/sqflint/parser/SQFParser.jj index 847c98e..561c1d0 100644 --- a/src/cz/zipek/sqflint/parser/SQFParser.jj +++ b/src/cz/zipek/sqflint/parser/SQFParser.jj @@ -347,7 +347,7 @@ SQFUnit Statement() : result = IfStatement() { return result; } | result = WhileStatement() { return result; } | result = ForStatement() { return result; } | - result = StatementExpression() { return result; } + result = Expression(null) { return result; } } catch(ParseException ex) { recover(ex, SEMICOLON); } finally { @@ -355,31 +355,6 @@ SQFUnit Statement() : } } -void EmptyStatement() : -{} -{ - ";" -} - -void ParamsStatement() : -{ - SQFArray contents = null; -} -{ - "params" contents = Array() - { - handleParams(contents); - } -} - -SQFUnit StatementExpression() : -{ - SQFUnit result = null; -} -{ - result = Expression(null) { return result; } -} - SQFSwitchStatement SwitchStatement() : { SQFSwitchStatement result = new SQFSwitchStatement();