Javascript Backend
UHC
The Javascript Backend
The JCU Port
This is a copy paste from my report that can be found on
my blog.
The
JCU application can be found here:
https://github.com/spockz/JCU. The
client-side project is located in
/resources/static/hjs. The
uhc-jscript library can be found here:
https://github.com/spockz/uhc-jscript.
The makefile in
hjs assumes the presence of a
$UHC variable
containing the location of the UHC compiler. Additionally it expects the following three
variables:
UHC_JSCRIPT,
UHC_NANOPROLOG, and
UHC_UU_TC to
point to the source directories of respectively: uhc-jscript,
NanoProlog?
(
https://github.com/spockz/NanoProlog), and the Utrecht Talen & Compilers
Parser Library
(
http://www.cs.uu.nl/wiki/bin/view/TC/CourseMaterials#Parser_Combinator_Library).
A hackage package maintained by Jurriën Stutterheim is also available.
Be sure to have a
PostgreSQL? server running. You can configure the connection to
the server in the file
JCU/config/connection_string.conf. The script to
create the tables is located in
JCU/packaging/initPgSqlDb.sql.
If you run into weird dependency errors when building the
JCU app please throw away your haskell folder. This is a known bug in Cabal.
export UHC="/Users/alessandro/Documents/Uni/xp/ehc/install/101/bin/ehc"
export UHC_JSCRIPT="/Users/alessandro/Documents/Uni/xp/uhc-jscript/uhc-jscript/src"
export UHC_NANOPROLOG="/Users/alessandro/Documents/Uni/xp/NanoProlog/src"
export UHC_UU_TC="/Users/alessandro/Documents/Uni/xp/uu-tc-2009.2.2/src"
--
AlessandroVermeulen - 25 Nov 2011