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

fixed a few ebnf errors #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dwoodlock
Copy link

Well detailed description of the change:

There are a few errors in the sqlpp.ebnf description of the language that I fixed:

  1. The OrdinaryFunctionCall should be able to have no arguments.
    There are functions in asterixdb, like current_time(), that don't have any arguments. I changed to the ebnf to allow that.

  2. A duplicate description of the Selection rule.
    One contained the ability to use a LetClause and the other didn't. I deleted the one that didn't as asterixdb does support LetClauses.

  3. Case typo in OrderByClause.
    The OrderByClause non-terminal was written in 2 different ways: OrderbyClause and OrderByClause. I changed them all to OrderByClause (consistent with GroupByClause)

  4. The non-Terminal "WITH" was used without the quotes.
    In 2 rules, the keyword "WITH" was written without the quotes. I added them.

Context of the change

I'm writing a parser generator for sqlpp in flex/bison using this ebnf and I ran into these errors. I'm not sure if this file is used to generate a parser or just as documentation, but I thought it would be useful to fix these.

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.

1 participant