Skip to content

Instantly share code, notes, and snippets.

@nitin42
Created March 9, 2018 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitin42/f858dc5c0e60d909b61dc33bcfc33920 to your computer and use it in GitHub Desktop.
Save nitin42/f858dc5c0e60d909b61dc33bcfc33920 to your computer and use it in GitHub Desktop.
class Unary extends Expression {
constructor(operator, right) {
super()
this.operator = operator
this.right = right
}
handle(visitor) {
return visitor.visitUnaryExpression(this)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment