A Tree-sitter grammar for parsing LispBM code, a lisp-like langauge optimized for embedded systems.
This project has a Nix flake with a development shell.
To enter it, run
nix develop
This shell has the dependencies installed for running the tree-sitter
CLI and npm
.
To generate the parser source after editing 'grammar.js', run
tree-sitter generate
To run the tests under 'test/', run
tree-sitter test
To format the projects Nix files, run
nix fmt
When making a commit please make sure that you've ran nix flake check
before
or or after creating the commit. This checks that you've ran the formatter,
generated the parser source code, and that the tests pass.
To make autocomplete work in VSCode I had to install the node environment using npm install
, after which intellisense automatically started working.
TODO: Test with other editors and rewrite with more confidence.