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

Use tree-sitter as underlining parser #35

Closed
6 of 7 tasks
char0n opened this issue Jul 23, 2020 · 2 comments
Closed
6 of 7 tasks

Use tree-sitter as underlining parser #35

char0n opened this issue Jul 23, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@char0n
Copy link
Member

char0n commented Jul 23, 2020

Start implementations with creating standardized AST via stampit specification and continue with transformer of CST -> AST. This will allows us to continue using current babel/graphql inspired traversal mechanism of ours. I'd need to change an architecture of code to reflect the possibility to plug a custom CST -> AST transformers if somebody would like to create a competing implementation using ANTLR4 or other parser generator.

This is direct follow up of https://github.com/swagger-api/oss-planning/issues/132

  • implement CST -> AST transformer
  • implement error accumulation mechanism
  • replace json-ast for tree-sitter
  • remove comments support
  • error handling
  • browser version of build fragments (web-tree-sitter)
  • buildable ApiDOM demo build from linking current monorepo packages
@char0n char0n added enhancement New feature or request OpenAPI 3.1 ApiDOM labels Jul 23, 2020
@char0n char0n added this to the M5 milestone Jul 23, 2020
@char0n char0n self-assigned this Jul 23, 2020
char0n added a commit that referenced this issue Jul 27, 2020
char0n added a commit that referenced this issue Jul 27, 2020
char0n added a commit that referenced this issue Jul 31, 2020
char0n added a commit that referenced this issue Jul 31, 2020
char0n added a commit that referenced this issue Aug 5, 2020
char0n added a commit that referenced this issue Aug 6, 2020
char0n added a commit that referenced this issue Aug 11, 2020
This commit replaces underlying json-ast parser with
tree-sitter.

Refs #35
char0n added a commit that referenced this issue Aug 11, 2020
This commit replaces underlying json-ast parser with
tree-sitter.

Refs #35
char0n added a commit that referenced this issue Aug 11, 2020
char0n added a commit that referenced this issue Aug 11, 2020
@char0n
Copy link
Member Author

char0n commented Aug 17, 2020

Closing this issue as all related tasks have been implemented.

@char0n char0n closed this as completed Aug 17, 2020
char0n added a commit that referenced this issue Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants