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)
def build(self): return Lexer(self.rules, self.ignore_rules)