Created
March 9, 2018 10:34
-
-
Save nitin42/63d78cddba4604b8bc145116aae702c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Binary extends Expression { | |
constructor(left, operator, right) { | |
super() | |
this.left = left | |
this.operator = operator | |
this.right = right | |
} | |
handle(visitor) { | |
return visitor.visitBinaryExpression(this) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment