git clone https://github.com/parseo-diwy/compiler-flecha.git
cabal build
If you want to get Mamarracho code then run
cabal run --verbose=silent flecha -- example.flecha
If you want to get AST representation then run
# AST according to deriving show structure
cabal run --verbose=silent flecha -- example.flecha --ast
# JSON-AST representation
cabal run --verbose=silent flecha -- example.flecha --json
Bats needed.
git submodule init
git submodule update --recursive
bats test/tests.sh