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

Extending a predefined grammar. #4

Open
s0kil opened this issue Jan 21, 2021 · 1 comment
Open

Extending a predefined grammar. #4

s0kil opened this issue Jan 21, 2021 · 1 comment

Comments

@s0kil
Copy link

s0kil commented Jan 21, 2021

Is it possible to extend a predefined such as the html grammar?

I'm trying to parse this:

fun render : Html {
  <div>
    <{ "Hello" }>
  </div>
}

The function allows html inside the block, and inside the html, it also allows <{ getSomeText() }> referencing language specific variables, literals, etc. Could you point me towards parsing the <{ }> part?

@marijnh
Copy link
Contributor

marijnh commented Jan 22, 2021

This isn't possible yet. I do have plans to add support for this but there's no concrete timeline.

@marijnh marijnh transferred this issue from lezer-parser/lr Aug 11, 2021
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

2 participants