quantifyearth / shark

3 stars 1 forks source link

Refactor AST into standalone library #69

Closed patricoferris closed 1 month ago

patricoferris commented 1 month ago

In preparation for the PR where we purely execute using the AST this PR refactors the AST into a standalone library. This meant moving Shark.Block (which was very Markdown focused) into Shark_ast.Ast.Block.Raw. To ease this transition the code is almost identical but I can imagine making the Raw.t more "raw" and then Shark.Block being more markdown focused.

Other things moved to like the AST dot renderer.

I don't really expect a review ((there's no new code here)) -- but just a thumbs up for the general idea and happy to answer questions @mdales ^^