Skip to content
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

Modularized Parser #127

Merged
merged 26 commits into from
Feb 22, 2021
Merged

Modularized Parser #127

merged 26 commits into from
Feb 22, 2021

Conversation

gaurav274
Copy link
Member

Parser modularized, moved from a single file to multiple modules

ddl_statement = self.visitChildren(ctx)
return ddl_statement

def visitDmlStatement(self, ctx: evaql_parser.DdlStatementContext):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the difference between visitDdlStatement on line 54?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate function, I'll remove one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate functions. I'll remove one


def visitLogicalExpression(
self, ctx: evaql_parser.LogicalExpressionContext):
if len(ctx.children) < 3:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOGICAL_NOT only has 2 children

return ExpressionType.LOGICAL_OR
elif op == 'AND':
return ExpressionType.LOGICAL_AND
else:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we are not supporting NOT. I was thinking we have NOT supported, because https://github.com/georgia-tech-db/eva/blob/master/src/expression/logical_expression.py

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not yet. We will add when we need be.

@xzdandy
Copy link
Collaborator

xzdandy commented Feb 22, 2021

@gaurav274 we need to merge this first.

@xzdandy xzdandy merged commit e5d35d5 into master Feb 22, 2021
@gaurav274 gaurav274 deleted the new_parser branch March 25, 2021 06:41
xzdandy added a commit to gaurav274/Eva that referenced this pull request Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants