Browse Source

Merge pull request #614 from ostracon/tiny_lexer_fix

Allows building TraditionalLexer with current configuration convention
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Shinan 4 years ago
committed by GitHub
parent
commit
78b314cf03
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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