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
Neil Brown 935d69d544 C++CSP Backend Added
C++CSP backend has been added.  It consists of a support header file and one new Haskell module: GenerateCPPCSP

The module is largely based on GenerateC, changed as needed.  
There is a large section at the bottom of the file with verbatim copy-and-paste from GenerateC,
due to wanting the same functionality, but for calls to use my C++CSP generation not the C generation -- 
hence I cannot simply import those functions.

The backend can generate code for cgtests 0 through 16 (incl) that will compile as valid C++.  The majority of the
tests pass when run (some do segfault, admittedly).  However some arrays still need more testing/work, particularly:
- timers
- array slices
- retyping

The tock_support_cppcsp.h header makes use of tock_support.h, but I had to add a few #ifnders to the latter
file so that I can use it with C++CSP and block out some of the CIF stuff.
2007-07-26 21:11:01 +00:00
testcases Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
AST.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
CompState.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
Errors.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
EvalConstants.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
EvalLiterals.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
GenerateC.hs Minor Haddock-related fixes 2007-07-25 14:00:48 +00:00
GenerateCPPCSP.hs C++CSP Backend Added 2007-07-26 21:11:01 +00:00
Indentation.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
Intrinsics.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
kroc-wrapper-c.c Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
kroc-wrapper.occ Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
LANGUAGE Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
Main.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
Makefile C++CSP Backend Added 2007-07-26 21:11:01 +00:00
Metadata.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
Parse.hs Minor Haddock-related fixes 2007-07-25 14:00:48 +00:00
Pass.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
PrettyShow.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
SimplifyExprs.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
SimplifyProcs.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
SimplifyTypes.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +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
TLP.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
tock_support_cppcsp.h C++CSP Backend Added 2007-07-26 21:11:01 +00:00
tock_support.h C++CSP Backend Added 2007-07-26 21:11:01 +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
Types.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
Unnest.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00
Utils.hs Give tock its own repo -- i.e. remove everything else and move tock up 2007-07-16 21:48:55 +00:00