From 664120890eda1941f3530552357587504fdaa284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Z=C3=ADpek?= Date: Wed, 23 Nov 2016 22:05:01 +0100 Subject: [PATCH] Removed more useless code from parser. --- src/cz/zipek/sqflint/parser/SQFParser.jj | 27 +----------------------- 1 file changed, 1 insertion(+), 26 deletions(-) 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();