missing read_from_chars/2

This commit is contained in:
Vitor Santos Costa 2011-06-14 09:00:25 +01:00
parent 5c03739525
commit 82ecc61f6d

View File

@ -100,3 +100,14 @@ with_stream(Stream, Goal) :-
current_output(Stream),
call(Goal).
%% read_from_chars(+Codes, -Term) is det.
%
% Read Codes into Term.
%
% @compat The SWI-Prolog version does not require Codes to end
% in a full-stop.
read_from_chars("", end_of_file) :- !.
read_from_chars(List, Term) :-
atom_to_term(List, Term, _).