Skip to content

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