added ast definition and parser

This commit is contained in:
hellerve
2015-07-08 13:07:02 +02:00
parent ed5ea34114
commit a96a5fe1f7
4 changed files with 555 additions and 1 deletions

View File

@@ -155,7 +155,7 @@ class Concat(Parser):
return Result(combined_value, right_result.pos)
return None
class Alternate(Parser):
class Alternate(Parser):
"""The alternate combinator. Parses using either of two parsers."""
def __init__(self, left, right):
"""