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
|
bin/modal examples/hello.modal
|
||||||
|
-v Print version
|
||||||
|
-q Quiet mode, no step printing
|
||||||
|
-n Infinite mode, no rewrites limit
|
||||||
```
|
```
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
|
@ -67,8 +67,8 @@ implode (12 (34 (56 ()))) 123456 test
|
||||||
?(?-) (Test Primitives)
|
?(?-) (Test Primitives)
|
||||||
|
|
||||||
<> (?: print) (?:)
|
<> (?: print) (?:)
|
||||||
<> (?x = ?x test) (#ok)
|
<> (?x = ?x test) (#ok\n print)
|
||||||
<> (?x = ?y test) (#fail)
|
<> (?x = ?y test) (#fail\n print)
|
||||||
|
|
||||||
?(?-) (List reversal)
|
?(?-) (List reversal)
|
||||||
|
|
||||||
|
|
8
makefile
8
makefile
|
@ -8,12 +8,12 @@ all: dest
|
||||||
dest:
|
dest:
|
||||||
@ mkdir -p bin
|
@ mkdir -p bin
|
||||||
run: all bin/modal
|
run: all bin/modal
|
||||||
@ bin/modal examples/hello.modal 2> /dev/null
|
@ bin/modal -q examples/hello.modal
|
||||||
debug: bin/modal-debug
|
debug: all bin/modal-debug
|
||||||
@ bin/modal-debug examples/hello.modal
|
@ bin/modal-debug examples/hello.modal
|
||||||
test: bin/modal-debug bin/modal
|
test: all bin/modal-debug bin/modal
|
||||||
@ bin/modal -v
|
@ bin/modal -v
|
||||||
@ bin/modal-debug examples/tests.modal
|
@ bin/modal-debug -q examples/tests.modal
|
||||||
install: bin/modal
|
install: bin/modal
|
||||||
cp bin/modal ~/bin/
|
cp bin/modal ~/bin/
|
||||||
uninstall:
|
uninstall:
|
||||||
|
|
Loading…
Reference in New Issue