DylanSp / faust-lang

An experimental language for exploring contract-based programming
MIT License
0 stars 0 forks source link

Implement lexing/parsing #9

Open DylanSp opened 1 year ago

DylanSp commented 1 year ago

Probably use Ohm; see links in docs/resources.md.

DylanSp commented 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.

DylanSp commented 1 year ago

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.

DylanSp commented 1 year ago

Notes on testing:

DylanSp commented 8 months ago

Example of using tree-sitter (not sure if directly applicable to parser): https://siraben.dev/2022/03/22/tree-sitter-linter.html