Parsing expressions inside of strings #181
RossComputerGuy
started this conversation in
General
Replies: 1 comment 4 replies
-
What you tried in the last paragraph should work. The only catch I see is that you won't be able to use |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From my grammar definition:
I need to get it to where the
identifierExpressionLexicalToken
is matched inside the strings. The idea is the resulting parser type would have a list of string or expression. An example of how this looks would be:However I also need to escape when
${
is prefixed by''
and reject it from parsing that. Reference from the language manual.I've tried using
ref0(identifierExpressionLexicalToken) | any()
inmultiLineStringLexicalToken
but that doesn't seem to do the trick.Beta Was this translation helpful? Give feedback.
All reactions