Skip to content

Commit

Permalink
Removed more useless code from parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkaceKamen committed Nov 23, 2016
1 parent 45ab0fe commit 6641208
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/cz/zipek/sqflint/parser/SQFParser.jj
Original file line number Diff line number Diff line change
Expand Up @@ -347,39 +347,14 @@ 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 {
return result;
}
}

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();
Expand Down

0 comments on commit 6641208

Please sign in to comment.