-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I'm embedding sublanguages (ex. POSIX shell commands) inside a parent language (ex. JSON). I didn't see a natural way to do this so implemented the following:
and made the lexer configuration driven:
and finally did the embedding here:
It works, but I suspect that there may be a better pattern for this.
Random factoid: The JSON parser inside ThunkParsers and ThunkLexers was based initially on your JSON parser example, but should now fully implement the JSON spec.
Metadata
Metadata
Assignees
Labels
No labels