From 0027c7b647e1b345badbb01bcafd22feee075470 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 22 Apr 2018 22:39:56 +0200 Subject: Implement program execution from command line --- examples/add.reg | 2 ++ examples/add.urm | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 examples/add.reg create mode 100644 examples/add.urm (limited to 'examples') diff --git a/examples/add.reg b/examples/add.reg new file mode 100644 index 0000000..c24e1f9 --- /dev/null +++ b/examples/add.reg @@ -0,0 +1,2 @@ +1 2 +2 3 diff --git a/examples/add.urm b/examples/add.urm new file mode 100644 index 0000000..d11eff7 --- /dev/null +++ b/examples/add.urm @@ -0,0 +1,11 @@ +ZERO 0 +ZERO 3 +JUMP 1 3 6 +SUCC 0 +SUCC 3 +JUMP 3 3 2 +ZERO 3 +JUMP 2 3 11 +SUCC 0 +SUCC 3 +JUMP 3 3 7 -- cgit v1.2.3