home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1986-10-07 | 308 b | 17 lines |
- /* Program 47 */
- /*
- Goal to be entered is on page 105 of the manual.
- */
-
- domains
- namelist = name*
- name = symbol
-
- predicates
- string_namelist(string,namelist)
-
- clauses
- string_namelist(S,[H|T]):-
- fronttoken(S,H,S1),!,string_namelist(S1,T).
- string_namelist(_,[]).