diff --git a/README.md b/README.md index 90d65a4..033992c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ cc src/modal.c -o bin/modal ``` bin/modal examples/hello.modal + -v Print version + -q Quiet mode, no step printing + -n Infinite mode, no rewrites limit ``` ## Credits diff --git a/examples/tests.modal b/examples/tests.modal index f8e329e..7a1698f 100644 --- a/examples/tests.modal +++ b/examples/tests.modal @@ -67,8 +67,8 @@ implode (12 (34 (56 ()))) 123456 test ?(?-) (Test Primitives) <> (?: print) (?:) -<> (?x = ?x test) (#ok) -<> (?x = ?y test) (#fail) +<> (?x = ?x test) (#ok\n print) +<> (?x = ?y test) (#fail\n print) ?(?-) (List reversal) diff --git a/makefile b/makefile index ab918b7..cf49fed 100644 --- a/makefile +++ b/makefile @@ -8,12 +8,12 @@ all: dest dest: @ mkdir -p bin run: all bin/modal - @ bin/modal examples/hello.modal 2> /dev/null -debug: bin/modal-debug + @ bin/modal -q examples/hello.modal +debug: all bin/modal-debug @ bin/modal-debug examples/hello.modal -test: bin/modal-debug bin/modal +test: all bin/modal-debug bin/modal @ bin/modal -v - @ bin/modal-debug examples/tests.modal + @ bin/modal-debug -q examples/tests.modal install: bin/modal cp bin/modal ~/bin/ uninstall: