Skip to content

parseo-diwy/compiler-flecha

Repository files navigation

Compiler $ Flecha

Install & Build

git clone https://github.com/parseo-diwy/compiler-flecha.git
cabal build

Run

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

Tests

Bats needed.

git submodule init
git submodule update --recursive
bats test/tests.sh