Extending a predefined grammar. #4

Open
opened 2021-01-21 19:20:05 +01:00 by s0kil · 1 comment
s0kil commented 2021-01-21 19:20:05 +01:00 (Migrated from github.com)

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?

Is it possible to extend a predefined such as the [html](https://github.com/lezer-parser/html) grammar? I'm trying to parse this: ```mint 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 commented 2021-01-22 08:35:22 +01:00 (Migrated from github.com)

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

This isn't possible yet. I do have plans to add support for this but there's no concrete timeline.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/lezer#4
No description provided.