Added the first Rain program to the testcases directory and added Makefile rules for compiling *.rain into *x using the C++CSP backend

This commit is contained in:
Neil Brown 2007-08-28 16:02:22 +00:00
parent 15be4ddca9
commit 6da26e5bf5
2 changed files with 16 additions and 0 deletions

View File

@ -26,6 +26,15 @@ CFLAGS = \
-std=gnu99 -fgnu89-inline \
`kroc --cflags` `kroc --ccincpath`
CXXFLAGS = -I. -O2 -ggdb3 -Wall
%x.tock.cpp: %.rain tock
./tock -v --backend=cppcsp --frontend=rain -o $@ $<
indent -nut -bli0 -pcs $@
%x: %x.tock.o tock
g++ $@.tock.o -pthread -lcppcsp2 -o $@
%.tock.c: %.occ tock
./tock -v -o $@ $<
indent -kr -pcs $@

7
testcases/simple.rain Normal file
View File

@ -0,0 +1,7 @@
process main (?uint8: in, !uint8: out, !uint8: err)
{
seqeach (c : "hello")
{
out ! c;
}
}