Help with context-free grammar of lots of literal text with some special syntax
-
25-09-2019 - |
Question
How do you make a context free grammar that analyzes mostly literal text (spaces, characters, symbols, etc.) while also looking for expressions of the form ${...} or $someCommand{...}? Note if it finds "I got $10 today", it should not do anything special with it.
Is it possible?
Solution
Yes, it is possible.
Since this is the right answer, I believe you will accept it.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow