mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-25 15:56:05 +00:00
14 lines
332 B
Bash
Executable File
14 lines
332 B
Bash
Executable File
#!/bin/sh
|
|
# Called from Setup.hs.
|
|
|
|
# Preprocess the GHC parser we're using to CPP subs.
|
|
cpphs --linepragma --text HaskellParser.y.pp -OParser.y
|
|
|
|
# Compile the parser and remove intermediate file.
|
|
happy Parser.y
|
|
rm Parser.y
|
|
|
|
# Move output Haskell to source directory.
|
|
mkdir -p IHaskell/GHC
|
|
mv Parser.hs IHaskell/GHC/HaskellParser.hs
|