small simplifications
This commit is contained in:
@@ -147,24 +147,22 @@
|
|||||||
|
|
||||||
'$read_input'(ThreadedGoals, NewVarList) :-
|
'$read_input'(ThreadedGoals, NewVarList) :-
|
||||||
get_single_char(C),
|
get_single_char(C),
|
||||||
( C == w ->
|
( C = w ->
|
||||||
nl,
|
nl,
|
||||||
write(' '),
|
write(' '),
|
||||||
'$write_eq'(ThreadedGoals, NewVarList, 0),
|
'$write_eq'(ThreadedGoals, NewVarList, 0),
|
||||||
'$read_input'(ThreadedGoals, NewVarList)
|
'$read_input'(ThreadedGoals, NewVarList)
|
||||||
; C == p ->
|
; C = p ->
|
||||||
nl,
|
nl,
|
||||||
write(' '),
|
write(' '),
|
||||||
'$write_eq'(ThreadedGoals, NewVarList, 20),
|
'$write_eq'(ThreadedGoals, NewVarList, 20),
|
||||||
'$read_input'(ThreadedGoals, NewVarList)
|
'$read_input'(ThreadedGoals, NewVarList)
|
||||||
; C == (';') ->
|
; member(C, [';', ' ']) ->
|
||||||
nl, write('; '), false
|
nl, write('; '), false
|
||||||
; C == (' ') ->
|
; C = h ->
|
||||||
nl, write('; '), false
|
|
||||||
; C == h ->
|
|
||||||
'$help_message',
|
'$help_message',
|
||||||
'$read_input'(ThreadedGoals, NewVarList)
|
'$read_input'(ThreadedGoals, NewVarList)
|
||||||
; C == '.' ->
|
; C = '.' ->
|
||||||
nl, write('; ...'), nl
|
nl, write('; ...'), nl
|
||||||
; '$read_input'(ThreadedGoals, NewVarList)
|
; '$read_input'(ThreadedGoals, NewVarList)
|
||||||
).
|
).
|
||||||
|
|||||||
Reference in New Issue
Block a user