Skip to content

[WIP] [Parser] Decouple the parser from AST creation (part 3.1) #26738

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

Closed
wants to merge 1 commit into from
Closed

[WIP] [Parser] Decouple the parser from AST creation (part 3.1) #26738

wants to merge 1 commit into from

Conversation

jansvoboda11
Copy link
Contributor

Instead of creating the AST directly in the parser (and libSyntax or SwiftSyntax via SyntaxParsingContext), make Parser to explicitly create a tree of ParsedSyntaxNodes. Their OpaqueSyntaxNodes can be either libSyntax or SwiftSyntax. If AST is needed, it can be generated from the libSyntax tree.
This PR contains the refactor of a few parsing methods for expressions.

This PR is a part of a Google Summer of Code 2019 project.

Work in progress, depends on #26478.

@rintaro rintaro self-assigned this Aug 20, 2019
@rintaro
Copy link
Member

rintaro commented Oct 21, 2019

Stale. Closing.

@rintaro rintaro closed this Oct 21, 2019
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