Ejemplo n.º 1
0
 def build(self):
     """
     Returns a lexer instance, which provides a `lex` method that must be
     called with a string and returns an iterator yielding
     :class:`~rply.Token` instances.
     """
     return Lexer(self.rules, self.ignore_rules)
Ejemplo n.º 2
0
 def build(self):
     return Lexer(self.rules, self.ignore_rules)