Mirror of http://offog.org/git/tock.git . Tock (translator from occam to C from Kent) is a Haskell-based compiler for occam and related languages.
Go to file
Adam Sampson 710be039cb Have the pregen programs figure out the types using generics.
Previously they had a list of the types they needed to generate
instances for.  This patch adds some helper code that can be used to
list all the AST.* types in the AST automatically. The result is that we
should be able to add new types to the AST without needing to change the
generator code.

This also means that GenOrdAST is now generating *all* the instances of
Ord for the AST; previously the trivial ones were derived by the
compiler.
2008-05-09 14:02:13 +00:00
backends Clean up EvalLiterals. 2008-04-08 00:29:23 +00:00
checks Changed to a state monad for warnings, and added a runPassM function to remove duplicate code for running passes 2008-04-03 12:21:59 +00:00
common Move DataBox into Utils. 2008-05-09 09:50:42 +00:00
config Do away with the pkgconfig file in favour of another generated module. 2008-05-07 13:06:27 +00:00
data Have the pregen programs figure out the types using generics. 2008-05-09 14:02:13 +00:00
docextra Add a logo for Tock. 2008-04-18 10:17:32 +00:00
flow Removed Wait, GetTime and AlternativeWait (the old Rain time items) from the AST 2008-03-24 15:15:54 +00:00
frontends Provide combinators for generic traversals. 2008-04-08 14:41:25 +00:00
pass Optimise applyX a bit. 2008-05-07 15:51:09 +00:00
pregen Have the pregen programs figure out the types using generics. 2008-05-09 14:02:13 +00:00
support Flush output when the C backend exits. 2008-04-08 15:12:24 +00:00
testcases Resolve the v[s] ambiguity outside the parser. 2008-04-07 21:36:21 +00:00
transformations Move evalIntExpression into EvalConstants, now that Types doesn't need it. 2008-04-06 13:31:37 +00:00
AUTHORS Changed tock to use autoconf/automake for its build process 2007-10-08 17:02:03 +00:00
cgtests.mk Add a "run" target to build and run the cgtests. 2008-04-08 15:17:40 +00:00
ChangeLog Changed tock to use autoconf/automake for its build process 2007-10-08 17:02:03 +00:00
compile-cgtests Added rules for getting and making the cgtests to the new Automake make system 2007-10-09 00:44:41 +00:00
configure.ac Do away with the pkgconfig file in favour of another generated module. 2008-05-07 13:06:27 +00:00
COPYING Add licensing information. 2007-08-18 20:42:11 +00:00
COPYING.LIB Add licensing information. 2007-08-18 20:42:11 +00:00
LANGUAGE Implement short-form PLACE, and fix PLACE IN WORKSPACE/VECSPACE. 2008-03-17 18:47:54 +00:00
Main.hs Changed to a state monad for warnings, and added a runPassM function to remove duplicate code for running passes 2008-04-03 12:21:59 +00:00
Makefile.am Have the pregen programs figure out the types using generics. 2008-05-09 14:02:13 +00:00
NEWS Changed tock to use autoconf/automake for its build process 2007-10-08 17:02:03 +00:00
README Changed tock to use autoconf/automake for its build process 2007-10-08 17:02:03 +00:00
SYNTAX Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
TestMain.hs Rewrite AnalyseAsm's parser. 2008-04-05 22:05:17 +00:00
TODO Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00