]> Creatis software - bbtk.git/blobdiff - samples/SampleInterpreter/bbProcessing.bbs
*** empty log message ***
[bbtk.git] / samples / SampleInterpreter / bbProcessing.bbs
diff --git a/samples/SampleInterpreter/bbProcessing.bbs b/samples/SampleInterpreter/bbProcessing.bbs
new file mode 100644 (file)
index 0000000..f4baaf6
--- /dev/null
@@ -0,0 +1,15 @@
+# Defines the pipeline used by SampleInterpreter
+# Here simply adds 1 to a double 
+load std
+define Processing
+  new Add a
+  set a.In2 1
+
+  # create the input : plug it in a.In1
+  input In a.In1 "Input number"
+  # create the output : get it from a.Out
+  output Out a.Out "Output number"
+
+  # executing the complex box executes a
+  exec a
+endefine