I'm trying to get my head around how to write grammar which will first parse an input for strings, and then when strings are found, parse that string.
For example, if I had an input such as:
var1 = "world"
someVariable = "hello {{var1}}"
The result I want is for someVariable to be equal to "hello world".
Now, I understand how to write the grammar to set a variable to a string, but what I cannot figure out is how to parse that string for the mustache syntax in order to inject the value inside of var1.
Thanks in advance!