-
Notifications
You must be signed in to change notification settings - Fork 2
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
Gaps and Queries #24
Comments
Should CSTs include In particular |
Gaps are going to need to be implemented at the same time as #27 because parsers are going to be the only reasonable way of creating trees with gaps in them, and no existing parsers will be able to do this for us. |
It's nearly time! |
Adding queries to this issue as they'll be necessary for working with gapped trees |
This powerful feature allows some nodes of a complete tree to be missing. It will be possible to drag and drop fragments of existing code into a gap, and it should not be possible to accidentally create invalid programs this way.
It is expected that gaps in programs will be represented in serialized text as
\x00
(the null byte). This way it will be possible to store code with gaps as plain text (i.e. not a CST json structure). We will be able to rehydrate those null bytes with information from the grammar, parsing them into a gap token so that it is clear what they reference.The text was updated successfully, but these errors were encountered: