This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| parser_combinators.py | |
| -------------------- | |
| Functions that make it easy to create string parsers. | |
| A parser is a function that takes a string ``remaining`` and returns a pair. | |
| If the parser was unsuccessful (the string does not patch the pattern of | |
| characters that that parser accepts), it returns ``(None, remaining)``. | |
| Otherwise, it returns a pair whose first element is the parsing result |
OlderNewer