You only need THREE things for a programming language: branching, functions, arithmetic
- C and C++ compiler
- Tree Sitter CLI
(
tree-sitter
)
make
The first invocation will clone the tree-sitter
and tree-sitter-dew
submodules and compile the libtree-sitter
static library.
Any time the grammar.js
is modified, it will also generate and compile the
parser into an object file for linkage.
Run the program with an example file:
./dewc ./examples/fib.dew