diff options
author | pacien | 2018-04-22 22:39:56 +0200 |
---|---|---|
committer | pacien | 2018-04-22 22:39:56 +0200 |
commit | 0027c7b647e1b345badbb01bcafd22feee075470 (patch) | |
tree | 8cf72c45c517b20c1adfe4eba25f8b3358115282 /examples | |
parent | db9de5bc717be46f0ca2dc1aa975c75adca6264d (diff) | |
download | urm-0027c7b647e1b345badbb01bcafd22feee075470.tar.gz |
Implement program execution from command line
Diffstat (limited to 'examples')
-rw-r--r-- | examples/add.reg | 2 | ||||
-rw-r--r-- | examples/add.urm | 11 |
2 files changed, 13 insertions, 0 deletions
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 | 1 2 | ||
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 @@ | |||
1 | ZERO 0 | ||
2 | ZERO 3 | ||
3 | JUMP 1 3 6 | ||
4 | SUCC 0 | ||
5 | SUCC 3 | ||
6 | JUMP 3 3 2 | ||
7 | ZERO 3 | ||
8 | JUMP 2 3 11 | ||
9 | SUCC 0 | ||
10 | SUCC 3 | ||
11 | JUMP 3 3 7 | ||