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

Language embedding-on #43

Closed
conartist6 opened this issue Jun 19, 2023 · 3 comments
Closed

Language embedding-on #43

conartist6 opened this issue Jun 19, 2023 · 3 comments

Comments

@conartist6
Copy link
Member

Support languages embedded in other languages, e.g. Regex language embedded inside Javascript.

@conartist6
Copy link
Member Author

See also: #32

@conartist6
Copy link
Member Author

conartist6 commented Jun 19, 2023

There are two distinct scenarios in my mind:

  1. Multiple language definitions transfer control between each other in order to complete parsing
  2. One language definition runs on the output of another

This ticket is about scenario 2.

@conartist6 conartist6 changed the title Language embedding Language embedding-on Apr 23, 2024
@conartist6
Copy link
Member Author

I'm going to close this for the moment because I'm not sure it's really a defect anymore. I believe that everything that will be necessary to support this functionality has been built.

Since we are talking about things like template strings that definitely parse in the underlying language before having another parser run on their content, in general we can't pretend that embedding-on is embedding-in, because it isn't. In other words, we must never pretend that there aren't two layers of meaning going on in something like a template string. If you ask to see only the syntax that JS will recognize, you would not that to include any of the syntax inside the template string.

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

No branches or pull requests

1 participant