From f704918fe2b187d715fe985ebffebdfbdc4b541f Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 14 Sep 2016 16:15:20 -0400 Subject: Add repeat and input --- prog/euclideanAlgorithmInput.html | 69 +++++++++++++++++++++++++++++++++++++++ prog/function.doml | 19 +++++++++++ prog/function.html | 13 +++++--- prog/input.html | 28 ++++++++++++++++ 4 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 prog/euclideanAlgorithmInput.html create mode 100644 prog/function.doml create mode 100644 prog/input.html (limited to 'prog') diff --git a/prog/euclideanAlgorithmInput.html b/prog/euclideanAlgorithmInput.html new file mode 100644 index 0000000..dfba476 --- /dev/null +++ b/prog/euclideanAlgorithmInput.html @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/prog/function.doml b/prog/function.doml new file mode 100644 index 0000000..841cb0b --- /dev/null +++ b/prog/function.doml @@ -0,0 +1,19 @@ +statement-sequence { + assign(name=myFunc) { + function(args=stringToPrint,val1,val2) { + print { + variable(name=stringToPrint) + bin-op(op=+) { + variable(name=val1) + variable(name=val2) + } + } + } + } + + call(name=myFunc) { + constant(val="hello, world!" type="string") + constant(val="3.5" type="number") + constant(val="7" type="number") + } +} diff --git a/prog/function.html b/prog/function.html index 2fe8d40..f0bf334 100644 --- a/prog/function.html +++ b/prog/function.html @@ -5,7 +5,7 @@ - + @@ -21,10 +21,13 @@ - - - - + + + + + + + diff --git a/prog/input.html b/prog/input.html new file mode 100644 index 0000000..07ca54a --- /dev/null +++ b/prog/input.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3