Open DylanSp opened 1 year ago
May want to write some helper functions for constructing instances of the AST types - see how difficult it ends up being just using the variant
library's API.
Instead of Ohm, maybe use tree-sitter, to take advantage of its larger ecosystem:
Apparently what tree-sitter outputs is closer to a concrete syntax tree - I may want a pass that consumes that and generates an AST using my types.
Notes on testing:
Example of using tree-sitter (not sure if directly applicable to parser): https://siraben.dev/2022/03/22/tree-sitter-linter.html
Probably use Ohm; see links in docs/resources.md.