Skip to content

Commit

Permalink
fix: comment and order of if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie authored and Eddie committed Jun 18, 2024
1 parent 0f69779 commit ac8c585
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified out/artifacts/jungle_jar/jungle.jar
Binary file not shown.
8 changes: 4 additions & 4 deletions src/main/java/com/jungle/parser/Parser.java
Original file line number Diff line number Diff line change
@@ -101,12 +101,12 @@ public INode parseNumberExpression() {
* ;
*/
consumeWhitespace();
if (accepts(TokenType.SYMBOL)) {
return parseIdentifier();
}
if (accepts(TokenType.NUMBER)) {
return parseNumber();
}
if (accepts(TokenType.SYMBOL)) {
return parseIdentifier();
}
if (accepts(TokenType.BRACKET_ROUND_OPEN)) {
return parseParenthesis(this::parseNumberExpression);
}
@@ -277,7 +277,7 @@ protected INode parseExpression() {
* | "(" expression ")"
* | "<" keyword ">" expression
* | boolean_expression
* | numeric_expression
* | number_expression
* | text_expression
* ;
*/

0 comments on commit ac8c585

Please sign in to comment.