Skip to content

Commit

Permalink
#357: changed name of if rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dbenn committed Jul 21, 2024
1 parent 983a576 commit 7910ee7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/org/aavso/tools/vstar/vela/ExpressionVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.aavso.tools.vstar.vela.VeLaParser.FormalParameterContext;
import org.aavso.tools.vstar.vela.VeLaParser.FuncallContext;
import org.aavso.tools.vstar.vela.VeLaParser.FunobjContext;
import org.aavso.tools.vstar.vela.VeLaParser.IfElseExpressionContext;
import org.aavso.tools.vstar.vela.VeLaParser.IfExpressionContext;
import org.aavso.tools.vstar.vela.VeLaParser.IntegerContext;
import org.aavso.tools.vstar.vela.VeLaParser.ListContext;
import org.aavso.tools.vstar.vela.VeLaParser.LogicalNegationExpressionContext;
Expand Down Expand Up @@ -152,7 +152,7 @@ public AST visitWhenExpression(WhenExpressionContext ctx) {
}

@Override
public AST visitIfElseExpression(IfElseExpressionContext ctx) {
public AST visitIfExpression(IfExpressionContext ctx) {
AST ast = new AST(Operation.IF);

// Add antecedent Boolean expression...
Expand Down
4 changes: 2 additions & 2 deletions src/org/aavso/tools/vstar/vela/VeLa.g4
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ expression
selectionExpression
:
whenExpression
| ifElseExpression
| ifExpression
;

whenExpression
Expand All @@ -80,7 +80,7 @@ whenExpression
)+
;

ifElseExpression
ifExpression
:
IF booleanExpression THEN consequent ( ELSE consequent )?
;
Expand Down

0 comments on commit 7910ee7

Please sign in to comment.