Move to an AST like data structure #76
Loading…
Reference in New Issue
No description provided.
Delete Branch "feat/refactor-ast"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The objective of this work is to move away from the current "Entity" stuff. I think we are reaching the limits of this system for some time now, and the recent issues from #74 show that we need to write visitors to apply manual fixes on the scraping result. Visitor will be really easy to write with a data structure based on a tree.
We use some new features from recent Teal releases, so this branch is based on top of
feat/fixes-teal-0.15.0
(#75).With these changes, we are also slowly moving away from Penlight data structure (mainly
pl.List
andpl.Map
) and some part of the code base are being rewritten with what I call "a better Teal feeling". Let's see where it brings us!Fixes: #57, #59, #74
With #75 merged, I can now rebase to have a correct CI output ✨
1f5974e2a8
to44de7a23df
Finally, coming back at it! I have finished to port the scraper to generate the new tree structure. I'm pretty happy with how it ends up 😄
The base implementation for the generator came together pretty quickly. It needs more work, but I'm super happy with the direction it takes.
Something that worries me now is that I have to adjust some stuffs on both sides now, the scraper and the generator, to get correct Teal types definitions in the output. Every change can introduce regressions. I need to get back to #24 and find a proper way to use Busted with Teal. So this PR will (probably) have to survive another freeze 😢 (or I'm not motived enough to finish the Busted thing and decide to continue to work here... Who knows?)
48f9d3f3ca
to60bbc3d6d4
60bbc3d6d4
to592e62d6fa
71f43ecb9b
to1faa35971e
1faa35971e
to129f15ea9d
c09d9d15f0
to3bf9ac4ebd
d4d0f387a0
toeec274af44
c8ff0aaaec
to73f6074ef2
With this final rebase, we should finally be ready to merge! 🎉
WIP: Move to an AST like data structureto Move to an AST like data structure