UHC
-
Download & Install
-
Documentation
-
Troubleshooting
-
UHC blog
-
News
-
More ...
Center
Master Program
Center
Home
Courses
People
Projects
Page
Edit Page
Rename Page
Attach File
Printable
Wiki Source
More ...
Web
Recent Changes
Notify Service
News
Page Index
Search
More ...
Wiki
About TWiki
Text Formatting
Registration
Change Password
Reset Password
Users
Groups
Log In
or
Register
Javascript Backend
UHC
---+ The Javascript Backend ---++ The JCU Port This is a copy paste from my report that can be found on [[http://alessandrovermeulen.me/2012/01/26/getting-rid-of-javascript-with-haskell/][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. <verbatim> 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" </verbatim> -- Main.AlessandroVermeulen - 25 Nov 2011