Also, forgot to ask...are you defining the format of this input or is it 
fixed (i.e. you can't change it). Because, if you are free to change it, 
then I would solve this problem by making sure strings are quoted in 
double quotes "my string" and then alter the parser to match a string / 
text literal by looking for the double quotes that mark the beginning 
and end of the string.

Or, another way round this would be to use the the fact that you have a 
new line between each key-value pair and use that to unambiguously be 
able to tell when one key-value ends and when another starts. (this 
method only works if you know there will always be a new line between 
each key-value pair and you never get two appearing on the same line)

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to