Launch repl on run
This commit is contained in:
parent
44b04fa893
commit
155857c120
|
@ -1,8 +0,0 @@
|
||||||
?(?-) (This is a fully functional Modal REPL.)
|
|
||||||
|
|
||||||
<> quit EOF
|
|
||||||
<> wait?~ (?~ wait!)
|
|
||||||
<> (?: print) ?:
|
|
||||||
<> (EOF wait!) (Bye.\n print)
|
|
||||||
|
|
||||||
(Say something, or type "quit":\n) print wait!
|
|
2
makefile
2
makefile
|
@ -8,7 +8,7 @@ all: dest
|
||||||
dest:
|
dest:
|
||||||
@ mkdir -p bin
|
@ mkdir -p bin
|
||||||
run: all bin/modal
|
run: all bin/modal
|
||||||
@ bin/modal -q examples/hello.modal
|
@ bin/modal src/repl.modal
|
||||||
debug: all bin/modal-debug
|
debug: all bin/modal-debug
|
||||||
@ bin/modal-debug examples/rules.modal
|
@ bin/modal-debug examples/rules.modal
|
||||||
test: all bin/modal-debug bin/modal
|
test: all bin/modal-debug bin/modal
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
?(?: ?:) (
|
||||||
|
\n
|
||||||
|
\t Hello. Welcome to Modal\n
|
||||||
|
\t Start rewriting, or type "quit"\n
|
||||||
|
\n
|
||||||
|
\t <> Defines a rule\n
|
||||||
|
\t >< Undefines a rule\n
|
||||||
|
\t ?x Assigns a register\n
|
||||||
|
\n
|
||||||
|
\t Have fun!\n
|
||||||
|
\n
|
||||||
|
)
|
||||||
|
|
||||||
|
<> (quit listen!) (?(?: ?:) (\n\tSee you soon.\n\n))
|
||||||
|
<> listen?~ (?~ listen!)
|
||||||
|
|
||||||
|
listen!
|
Loading…
Reference in New Issue