fvg icon indicating copy to clipboard operation
fvg copied to clipboard

Functional Vector Graphics

Functional Vector Graphics

A compiler and interpreter for a small language of vector graphics. Play with the language at https://lemmih.github.io/fvg. The language supports ADTs, pattern matching, HM type inference, and Svg literal values.

Test suite

From the tests/ directory, run: runhaskell -i../src runtests.hs

To run a single test: runhaskell -i../src runtest.sh [file].fvg The output will be stored in [file].out.

Frontend

Clone reflex-platform

Then run reflex-platform/work-on ghcjs ./. --command "cabal configure --ghcjs -fSite && cabal build"