Ver a proveniência

Restore the Lark.terminals attribute when using cached grammar

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Sh há 4 anos
ascendente
cometimento
faecf32592
1 ficheiros alterados com 2 adições e 0 eliminações
  1. +2
    -0
      lark/lark.py

+ 2
- 0
lark/lark.py Ver ficheiro

@@ -375,6 +375,8 @@ class Lark(Serialize):
self.options.transformer,
re_module
)
self.terminals = self.parser.lexer_conf.tokens
self._terminals_dict = {t.name: t for t in self.terminals}
return self

@classmethod


Carregando…
Cancelar
Guardar