Created
January 31, 2020 01:54
-
-
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.
This file contains 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 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