Browse Source

A minor style fix (a possible memory usage improvement)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.0
Erez Shinan 6 years ago
parent
commit
61afbed17a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lark/parsers/grammar_analysis.py

+ 2
- 1
lark/parsers/grammar_analysis.py View File

@@ -136,7 +136,8 @@ class GrammarAnalyzer(object):
if not is_terminal(new_r):
yield new_r

_ = list(bfs([rule], _expand_rule))
for _ in bfs([rule], _expand_rule):
pass

return fzset(init_ptrs)



Loading…
Cancel
Save