-
Is it possible to write a grammar where some literals might be injected at runtime? I realize this would be unsafe as the injected token might result in an invalid PEG grammar but I wanted to ask if it would somehow be possible. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Right now, it's not, but it's something that was discussed before: #333 (comment) the current pest3 prototype is here: https://github.com/pest-parser/pest3 it doesn't have this feature, but it's open for experimentation (if you'd like to add it there) |
Beta Was this translation helpful? Give feedback.
-
Ah, I didn't know about pest3, I'll see if I can understand what I would need to modify and try my best! |
Beta Was this translation helpful? Give feedback.
Right now, it's not, but it's something that was discussed before: #333 (comment)
the current pest3 prototype is here: https://github.com/pest-parser/pest3 it doesn't have this feature, but it's open for experimentation (if you'd like to add it there)