Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (11 sloc) 428 Bytes
#!/bin/bash -eu
declare -r TOP="$(git rev-parse --show-toplevel)"
declare -r GREP="grep --quiet --no-messages"
cd "$TOP"
rm -f $TOP/src/Scanner.hs $TOP/src/Parser.hs
stack solver
stack exec alex -- --ghc $TOP/src/Scanner.x
#stack exec alex -- --ghc --template=$TOP/alex $TOP/src/Scanner.x
# Inform happy to create the state diagram file and print debug information
stack exec happy -- -i -a -d $TOP/src/Parser.y
stack build