The sqrt/1 predicate wasn't working.

This commit is contained in:
Simon Forman
2019-08-11 19:35:05 -07:00
parent 79aa2f972d
commit afec650c7b
3 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -20,6 +20,9 @@ Main Loop
*/
% :- debug.
% :- spy(thun).
:- initialization(loop).
loop :- prompt, line(Line), loop(Line, [], _Out).
@@ -32,9 +35,8 @@ loop( Line, In, Out) :-
line(NextLine), !,
loop(NextLine, S, Out).
do_line(Line, In, Out) :-
phrase(joy_parse(E), Line),
phrase(joy_parse(E), Line), !,
thun(E, In, Out).
do_line(_Line, S, S) :- write('Err'), nl.