Skip to content

Commit 4b89d19

Browse files
committed
warning if no dump is found
1 parent f3a2644 commit 4b89d19

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sly/yacc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,8 @@ def __build_lrtables(cls):
20282028
lr_dump = json.load(open(build_file, 'r'))
20292029
except Exception:
20302030
pass
2031+
if lr_dump is None:
2032+
print('Unable to load lr_table dump, parsing initialization might be slower')
20312033

20322034
lrtable = LRTable(cls._grammar, lr_dump=lr_dump)
20332035
num_sr = len(lrtable.sr_conflicts)

0 commit comments

Comments
 (0)