I want to parse a list of (whitespace separated) pairs in the form of
name1=value1 name2=value2 ...
where:
- NAME can contain anything except whitespace and equal sign
- VALUE can contain anything except whitespace (including equal signs!)
The problem is getting the parser to match input like
name1=value1
as separate 'NAME EQUALS VALUE'
tokens, not as a single 'VALUE'
token.
PS. I know this is trivial to code directly, but I need this in the context of a larger parser.