示例#1
0
文件: parser.py 项目: EvelynHf/basil
    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)
示例#3
0
 def __init__(self, start='mechanism'):
     GenericParser.__init__(self, start)
示例#4
0
 def __init__(self):
     GenericParser.__init__(self, start='document')
     self.__logger = logging.getLogger(class_qname(self))
示例#5
0
 def __init__(self, start='Statement'):
     GenericParser.__init__(self, start)
示例#6
0
 def __init__(self):
     GenericParser.__init__(self, start="expr")
 def __init__(self, start="expr"):
     GenericParser.__init__(self, start)
 def __init__(self, start='Statement'):
     GenericParser.__init__(self, start)
示例#9
0
 def __init__(self, start='settings'):
     GenericParser.__init__(self, start)
示例#10
0
 def __init__(self, start, default_prio_factor=None):
     self._generator = Generator(self, start, default_prio_factor)
     GenericParser.__init__(self, start)
示例#11
0
文件: parse.py 项目: dwks/silvius
 def __init__(self, start):
     GenericParser.__init__(self, start)
示例#12
0
 def __init__(self):
     GenericParser.__init__(self, start='document')
     self.__logger = logging.getLogger(class_qname(self))
示例#13
0
 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)
示例#14
0
 def __init__(self, start, default_prio_factor=None):
     self._generator = Generator(self, start, default_prio_factor)
     GenericParser.__init__(self, start)
示例#15
0
文件: Parser.py 项目: BillTheBest/mom
 def __init__(self, start='value'):
     GenericParser.__init__(self, start)
示例#16
0
 def __init__(self):
     GenericParser.__init__(self, 'expr')
示例#17
0
 def __init__(self, start='expr'):
     GenericParser.__init__(self, start)
示例#18
0
 def __init__(self, start='expr'):
     GenericParser.__init__(self, start)
示例#19
0
 def __init__(self):
     GenericParser.__init__(self, start="program")
示例#20
0
 def __init__(self, start='value'):
     GenericParser.__init__(self, start)
示例#21
0
 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)
示例#22
0
 def __init__(self, start):
     GenericParser.__init__(self, start)
示例#23
0
 def __init__(self, start = 'file'):
     """Initialise the parser with the start production rule."""
     GenericParser.__init__(self, start)