Added documentation for flags
This commit is contained in:
parent
f35eb2c8ec
commit
bc3165d7e6
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
8
makefile
8
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:
|
||||
|
|
Loading…
Reference in New Issue