I'm trying to create a grammar for a language like the following
someVariable = This is a string, I know it doesn't have double quotes
anotherString = This string has a continuation _
this means I can write it on multiple line _
like this
anotherVariable = "This string is surrounded by quotes"
What are the correct Treetop grammar rules that parse the previous code correctly?
I should be able to extract the following values for the three variables
- This is a string, I know it doesn't have double quotes
- This string has a continuation this means I can write it on multiple line like this
- This string is surrounded by quotes
Thank you