@classmethod<EOL><INDENT>def parse(cls, parser, text, pos):  <DEDENT>
if not text.strip():<EOL><INDENT>return text, SyntaxError("<STR_LIT>")<EOL><DEDENT>class Rule(object):<EOL><INDENT>grammar = attr('<STR_LIT:value>', SpiresSimpleValue), omit(re.compile("<STR_LIT>"))<EOL><DEDENT>try:<EOL><INDENT>tree = pypeg2.parse(text, Rule, whitespace="<STR_LIT>")<EOL><DEDENT>except SyntaxError:<EOL><INDENT>return text, SyntaxError("<STR_LIT>" % cls)<EOL><DEDENT>else:<EOL><INDENT>r = tree.value<EOL><DEDENT>if r.value.lower() in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>return text, SyntaxError("<STR_LIT>" % r.value)<EOL><DEDENT>return text[len(r.value):], r<EOL>
Match simple values excluding some Keywords like 'and' and 'or