Skip to content

Instantly share code, notes, and snippets.

@cosinekitty
Created January 31, 2020 01:54
Show Gist options
  • Save cosinekitty/c19fe7ff25caa0c62b421b2c395e9be8 to your computer and use it in GitHub Desktop.
Save cosinekitty/c19fe7ff25caa0c62b421b2c395e9be8 to your computer and use it in GitHub Desktop.
Expressions all have an operator precedence, a token, and a list of arguments.
class Expression {
constructor(precedence, optoken, arglist) {
this.precedence = precedence;
this.optoken = optoken;
this.arglist = arglist;
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment