fix phrase/3
This commit is contained in:
parent
24b466db4e
commit
f8972365f8
@ -132,9 +132,6 @@
|
||||
phrase(PhraseDef, WordList) :-
|
||||
phrase(PhraseDef, WordList, []).
|
||||
|
||||
phrase(_:[], S, S) :- !.
|
||||
phrase(_:[H|T], S0, S) :- !,
|
||||
lists:append([H|T], S, S0).
|
||||
phrase(P, S0, S) :-
|
||||
call(P, S0, S).
|
||||
|
||||
@ -142,6 +139,8 @@ phrase(P, S0, S) :-
|
||||
|
||||
[](S, S).
|
||||
|
||||
[](H, T, S0, S) :- lists:append([H|T], S, S0).
|
||||
|
||||
'.'(H,T, S0, S) :-
|
||||
lists:append([H|T], S, S0).
|
||||
|
||||
|
Reference in New Issue
Block a user