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

Tree-sitter: Splice / Raise (?) #80

Open
countvajhula opened this issue Feb 27, 2023 · 0 comments
Open

Tree-sitter: Splice / Raise (?) #80

countvajhula opened this issue Feb 27, 2023 · 0 comments

Comments

@countvajhula
Copy link
Collaborator

What do splice and raise mean in the context of non-Lisp languages?

E.g. in Lisp, we can introduce hierarchy levels simply by using parentheses, whereas in other languages, hierarchy levels are typically implied by the use of specific named syntax like for and class. So, it would seem that "splicing" an expression should remove the outer syntax (e.g. for x in data:) and promote the contents to the containing level -- that is, it's not just a matter of removing parentheses but also removing the wrapping syntax that implies the hierarchy level. Is this straightforward to do using tree-edit APIs?

If it isn't straightforward, then this feature is probably best left for later.

Raise might be easier to implement, and if that's the case, we could narrow the scope of this ticket to just raise (comment on the integration branch PR or directly edit this ticket if you have an opinion on this).

@countvajhula countvajhula converted this from a draft issue Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant