Browse Source

Removed Python2 incompatibility

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.7.2
Erez Shinan 5 years ago
parent
commit
f71df240b6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/parser_frontends.py

+ 1
- 1
lark/parser_frontends.py View File

@@ -107,7 +107,7 @@ class LALR_ContextualLexer(LALR_WithLexer):
###}

class LALR_CustomLexer(LALR_WithLexer):
def __init__(self, lexer_cls, lexer_conf, parser_conf, *, options=None):
def __init__(self, lexer_cls, lexer_conf, parser_conf, options=None):
self.lexer = lexer_cls(self.lexer_conf)
debug = options.debug if options else False
self.parser = LALR_Parser(parser_conf, debug=debug)


Loading…
Cancel
Save