Browse Source

Allows building TraditionalLexer with current configuration convention

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Nathaniel Hartley 4 years ago
parent
commit
c7fa5e3aa3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/lark.py

+ 1
- 1
lark/lark.py View File

@@ -294,7 +294,7 @@ class Lark(Serialize):
__serialize_fields__ = 'parser', 'rules', 'options'

def _build_lexer(self):
return TraditionalLexer(self.lexer_conf.tokens, ignore=self.lexer_conf.ignore, user_callbacks=self.lexer_conf.callbacks, g_regex_flags=self.lexer_conf.g_regex_flags)
return TraditionalLexer(self.lexer_conf)

def _prepare_callbacks(self):
self.parser_class = get_frontend(self.options.parser, self.options.lexer)


Loading…
Cancel
Save