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

feat: add recursive cte #190

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

matthias-Q
Copy link
Collaborator

This add recursive CTEs.

I was thinking about an alternative implementation. Instead of

    cte: $ => seq(
      $.identifier,
      optional(paren_list(field("argument", $.identifier))),
      $.keyword_as,
...

we could use

    cte: $ => seq(
      choice(
        $.identifier,
        $.invocation
      ),
      $.keyword_as,
...

But invocation would be more permissive and is technically wrong.

@matthias-Q matthias-Q merged commit 17bdf0a into DerekStride:main Aug 9, 2023
4 checks passed
@matthias-Q matthias-Q deleted the recursive_cte branch August 9, 2023 05:09
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.

2 participants