Multifile func/3.

This commit is contained in:
Simon Forman
2019-08-11 18:45:57 -07:00
parent cd60816429
commit 79aa2f972d
5 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -33,7 +33,9 @@ loop( Line, In, Out) :-
loop(NextLine, S, Out).
do_line(Line, In, Out) :- phrase(joy_parse(E), Line), thun(E, In, Out).
do_line(Line, In, Out) :-
phrase(joy_parse(E), Line),
thun(E, In, Out).
do_line(_Line, S, S) :- write('Err'), nl.
prompt :- write(`joy? `).