Replies: 1 comment
-
|
Here’s what I had put together before getting stuck. |
Beta Was this translation helpful? Give feedback.
0 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.
-
I’m trying to parse a custom file format with an example shown below, where the
<shell code>is one or more line of possibly valid code for a certain shell.The problem I run into with my own grammar is that
}is a valid character in Bash code, but is also the delimiter for the test body, so the closing delimiter appears as the first character in a valid bit of shell code. How would you approach parsing this?Beta Was this translation helpful? Give feedback.
All reactions