Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (25 sloc) 898 Bytes
Providing a build system for examples using ANTLR, libantlr3c and
the Haskell antlrc runtime binding is difficult due to the following
(1) There is no ANTLR 3.2 or 3.3 ebuild for Gentoo Linux, and hence no
standard location for the ANTLR jar files.
(2) There is no standard antlr command to run the ANTLR parser generator tool
provided by ANTLR:
(3) It seems difficult to find a portable method to build a C program that calls Haskell.
I provide some example makefiles, however they would need to be modified
for your system.
I wrote this Haskell/C/ANTLR example based on the arith example from the book
Types and Programming Languages by Benjamin Pierce chapter 4.
(ghc7) argus% ./arith test.f
(ghc7) argus%
This example is incomplete.