-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refactor list comprehension & bug fixes #8
Conversation
@@ -241,6 +234,32 @@ peg::parser! { | |||
"[" __* c:expression() ** (__* "," __*) __* "]" { ListExpression::list(c) } | |||
} | |||
|
|||
#[cache_left_rec] | |||
rule iterator() -> Expression |
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.
wow 😍 looks so much better
ast::BinaryExpression::Eq(var, val) => { | ||
let variable = match *var.clone() { | ||
ast::Expression::UnaryExpression(exp) => match exp { | ||
ast::UnaryExpression::Identifier(ident) => ident, |
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.
Sorry what would be an example of an identifier expression again?
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.
like a variable, eg. x
from the expression: x = 1
WHERE clauses interpreted as list filters when following a WITH projection without an AS
bugIteratorExpression