grammars for entries parsing now LALR(1), which is much faster

This commit is contained in:
Trilarion
2020-09-02 22:31:01 +02:00
parent 60fd9ed93e
commit b3f9d3af9b
18 changed files with 147 additions and 49 deletions

View File

@ -2,6 +2,7 @@
Maintenance of inspirations.md and synchronization with the inspirations in the entries.
"""
import time
from utils import constants as c, utils, osg, osg_ui
@ -33,8 +34,14 @@ if __name__ == "__main__":
# assemble info
t0 = time.process_time()
entries = osg.read_entries()
entries = osg.assemble_infos()
print('took {}s'.format(time.process_time()-t0))
t0 = time.process_time()
# entries = osg.assemble_infos()
osg.write_entries(entries)
print('took {}s'.format(time.process_time()-t0))
# assemble inspirations info from entries
entries_inspirations = {}