-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial ast and parser structure skeleton #50
Conversation
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pub enum Expression { | ||
Match(MatchExpr), | ||
Operation(Operation), | ||
// Block(Vec<Statement>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be commented
@igaray mentioned a few things were off, let's fix it in the next pr. |
The ast was inspired from our austral port.
The parser in this pr is just enough to parse the factorial program at the bottom.
Current test produces the following output:
Program:
Ast:
factorial:
https://gist.github.com/edg-l/068898bb319fdb324beca30b08c7caf4