Skip to content

feat: add recursive cte - #190

Merged
matthias-Q merged 1 commit into
DerekStride:mainfrom
matthias-Q:recursive_cte
Aug 9, 2023
Merged

feat: add recursive cte#190
matthias-Q merged 1 commit into
DerekStride:mainfrom
matthias-Q:recursive_cte

Conversation

@matthias-Q

Copy link
Copy Markdown
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 requested review from DerekStride and dmfay August 8, 2023 18:07
@matthias-Q
matthias-Q merged commit 17bdf0a into DerekStride:main Aug 9, 2023
@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