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

[WIP] Proper grammar for concrete syntax #641

Open
danieltrt opened this issue Dec 8, 2023 · 0 comments
Open

[WIP] Proper grammar for concrete syntax #641

danieltrt opened this issue Dec 8, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@danieltrt
Copy link
Collaborator

danieltrt commented Dec 8, 2023

I hacked a grammar for concrete syntax from uber/tree-sitter-strings because:

  1. Existing implementation of concrete syntax is hacked using string comparisons
  2. Concrete syntax is limited in expressiveness compared to tree sitter query syntax because of 1.

The goal is to make concrete syntax more powerful. The version here supports:

:[x] and [x: node-type], which addresses the problem of being unable to use node types to further constraint the template variable types.

I was also thinking of addding a where syntax for basic operations like equality, and !=. Eventually it could be integrated with LSP for more powerful where queries

@danieltrt danieltrt self-assigned this Dec 8, 2023
@danieltrt danieltrt added the enhancement New feature or request label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant