Skip to content

Commit

Permalink
Improve AST API
Browse files Browse the repository at this point in the history
  • Loading branch information
larsga committed Mar 1, 2021
1 parent 6709321 commit f896573
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,15 @@ public String toString() {
return first + " " + operator + " " + second;
}

public ExpressionNode getLeft() {
return left;
}

public ExpressionNode getRight() {
return right;
}

public String getOperator() {
return operator;
}
}

0 comments on commit f896573

Please sign in to comment.