fix phrase/3

This commit is contained in:
Vítor Santos Costa 2012-03-29 22:32:56 +01:00
parent 24b466db4e
commit f8972365f8

View File

@ -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).