From a3844616b62aae43e7aa12da6df852628acab504 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Wed, 17 Dec 2014 13:41:56 +1100 Subject: Test Grasp programs for general purpose, arithmetic, simple IO --- src/Grasp/Examples/sub.grasp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/Grasp/Examples/sub.grasp (limited to 'src/Grasp/Examples/sub.grasp') diff --git a/src/Grasp/Examples/sub.grasp b/src/Grasp/Examples/sub.grasp new file mode 100644 index 0000000..9d379ec --- /dev/null +++ b/src/Grasp/Examples/sub.grasp @@ -0,0 +1,16 @@ +digraph { + 1 [label="sub"] + 2 [label="grasp:main"] + 3 [label="10"] + 4 [label="2"] + 5 [label="2.1"] + 6 [label="out1"] + 7 [label="out2"] + + 1 -> 2 [label="name"] + 1 -> 3 [label="left"] + 1 -> 4 [label="right"] + 1 -> 5 [label="right"] + 1 -> 6 [label="out"] + 1 -> 7 [label="out"] +} \ No newline at end of file -- cgit