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:
parent
15be4ddca9
commit
6da26e5bf5
9
Makefile
9
Makefile
|
@ -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
7
testcases/simple.rain
Normal file
|
@ -0,0 +1,7 @@
|
|||
process main (?uint8: in, !uint8: out, !uint8: err)
|
||||
{
|
||||
seqeach (c : "hello")
|
||||
{
|
||||
out ! c;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user