Uh oh!
There was an error while loading. Please reload this page.
feat: add a parser - #17
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| recs.forM parseRecInfo | ||
| def parseItem (line : String) : M Unit := do | ||
| let obj ← parseJsonObj line |
There was a problem hiding this comment.
Since I had the same big if statement show up in my parser -- would it be helpful to document what order to micro-optimize the branches in somewhere based on frequency of what appears in the wild (e.g. I assume app belongs way higher).
(Obviously not highly relevant to this PR itself).
There was a problem hiding this comment.
I'd be somewhat surprised if that makes a measurable difference, but feel free to gather that data from a mathlib dump and put it somewhere (maybe a comment at the bottom of the format description)
(In particular, mutual defs and theorems don't exist.) Refs: leanprover/lean4export#17
Uh oh!
There was an error while loading. Please reload this page.
This adds a parser for the lean4export format. It is based on #12 and the latest format iteration from #16.