Added documentation for flags

This commit is contained in:
Devine Lu Linvega 2024-04-18 11:45:32 -07:00
parent f35eb2c8ec
commit bc3165d7e6
3 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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)

View File

@ -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: