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

[Core] Implement special escape functions (through ParseSingleUnsafe) #22

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

chaojian-zhang
Copy link
Contributor

@chaojian-zhang chaojian-zhang commented Oct 27, 2023

Implements special handling for Parse() to allow state discontinuity: when Parse() is executed on its own, we will "dismiss" the content being parsed and effectively "insert" the states from execution of the interpreted script. This is illustrated in the commit 8b610fc.

  • This setup allows using standard C# to implement certain functionalities on the parser/interpreter level while not really interfering with usual state continuity.

- Implement `Pull()` on the language level to allow "dismissing" state of calling
- Add unit tests
- [CentralSnippets] Fix parsing call
- Illustrate the point that `Parse()` bypass itself when interpreted.
@chaojian-zhang chaojian-zhang merged commit c77fc71 into main Oct 27, 2023
@chaojian-zhang chaojian-zhang deleted the Core-ParseSingleUnsafe branch October 27, 2023 22:34
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.

1 participant