def __init__(self, start="program"): """Creates a new parser start - the start symbol; interesting values are 'datum', 'expression' and 'program' """ GenericParser.__init__(self, start)
def __init__(self, start='decl'): GenericParser.__init__(self, start)
def __init__(self, start='mechanism'): GenericParser.__init__(self, start)
def __init__(self): GenericParser.__init__(self, start='document') self.__logger = logging.getLogger(class_qname(self))
def __init__(self, start='Statement'): GenericParser.__init__(self, start)
def __init__(self): GenericParser.__init__(self, start="expr")
def __init__(self, start="expr"): GenericParser.__init__(self, start)
def __init__(self, start='settings'): GenericParser.__init__(self, start)
def __init__(self, start, default_prio_factor=None): self._generator = Generator(self, start, default_prio_factor) GenericParser.__init__(self, start)
def __init__(self, start): GenericParser.__init__(self, start)
def parse(self, tokens): discard_token_types = (Token.Type.EOL, Token.Type.WS) tokens = [token for token in tokens if token.type not in discard_token_types] return GenericParser.parse(self, tokens)
def __init__(self, start='value'): GenericParser.__init__(self, start)
def __init__(self): GenericParser.__init__(self, 'expr')
def __init__(self, start='expr'): GenericParser.__init__(self, start)
def __init__(self): GenericParser.__init__(self, start="program")
def parse(self, tokens): discard_token_types = (Token.Type.EOL, Token.Type.WS) tokens = [ token for token in tokens if token.type not in discard_token_types ] return GenericParser.parse(self, tokens)
def __init__(self, start = 'file'): """Initialise the parser with the start production rule.""" GenericParser.__init__(self, start)