python Programming Glossary: terminal_action
How do I parse indents and dedents with pyparsing? http://stackoverflow.com/questions/1547944/how-do-i-parse-indents-and-dedents-with-pyparsing ' t' .setName 'NEWLINE' .setParseAction terminal_action 'NEWLINE' 'ENDMARKER' p.stringEnd.copy .setWhitespaceChars '.. ' t' .setName 'ENDMARKER' .setParseAction terminal_action 'ENDMARKER' 'NAME' p.Word p.alphas _ p.alphanums _ asKeyword.. _ asKeyword True .setName 'NAME' .setParseAction terminal_action 'NAME' 'NUMBER' p.Combine p.Word p.nums p.CaselessLiteral l..
|