Browse Source

fix for python2.7

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.6
MegaIng1 4 years ago
parent
commit
40148d310c
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      lark/load_grammar.py

+ 0
- 2
lark/load_grammar.py View File

@@ -355,7 +355,6 @@ class _ReplaceSymbols(Transformer_InPlace):
" Helper for ApplyTemplates "
def __init__(self):
super(_ReplaceSymbols, self).__init__()
self.names = {}

def value(self, c):
@@ -367,7 +366,6 @@ class ApplyTemplates(Transformer_InPlace):
" Apply the templates, creating new rules that represent the used templates "

def __init__(self, rule_defs):
super(ApplyTemplates, self).__init__()
self.rule_defs = rule_defs
self.replacer = _ReplaceSymbols()
self.created_templates = set()


Loading…
Cancel
Save