summaryrefslogtreecommitdiff
path: root/impl/systems
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@carlo-laptop>2012-05-29 22:42:25 +1000
committerCarlo Zancanaro <carlo@carlo-laptop>2012-05-29 22:42:25 +1000
commite043ee06a51a8d8c68f8cb0984d4f7bd8915bea8 (patch)
treecc8fd32426518808facb2efb496667b92cd22754 /impl/systems
parentf09ce60d45d5524e36d07e76814b6e0cbc554288 (diff)
First attempt a range parser - likely not correct.
Diffstat (limited to 'impl/systems')
-rw-r--r--impl/systems/range-test1
-rw-r--r--impl/systems/size-ten6
2 files changed, 4 insertions, 3 deletions
diff --git a/impl/systems/range-test b/impl/systems/range-test
new file mode 100644
index 0000000..c2ac047
--- /dev/null
+++ b/impl/systems/range-test
@@ -0,0 +1 @@
+x = max([0, 1], -x + [-1, 1])
diff --git a/impl/systems/size-ten b/impl/systems/size-ten
index 71ee74a..9ef3135 100644
--- a/impl/systems/size-ten
+++ b/impl/systems/size-ten
@@ -1,3 +1,3 @@
-x1 = max(0, min(x1-1, x2))
-x2 = max(0, 5+x1, x1)
-x3 = max(0, 1+x3, 0+x1)
+x1 = max([0,0], min(x1-[1,1], x2))
+x2 = max([0,0], [5,5]+x1, x1)
+x3 = max([0,0], [1,1]+x3, [0,0]+x1)