Created
September 18, 2018 17:22
-
-
Save FreeMasen/5db4c8083e56d5dd171076dcb7dbd4a2 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
enum Expression { | |
Binary(BinaryExpression), | |
Unary(Box<UnaryExpression>), | |
} | |
struct BinaryExpression { | |
left: Box<Expression>, | |
operator: Operator, | |
right: Box:<Expression>, | |
} | |
struct UnaryExpression { | |
operator: Operator, | |
argument: Expression, | |
prefix: bool, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment