Hi Amoss,
yes, it is in the "atom2term" library:
Ciao 1.13.0-9437: Sun Mar 2 20:25:48 CET 2008
?- use_module(library(atom2term)).
yes
?- atom_codes(_A,"f(g(a))"), atom2term(_A,Term).
Term = f(g(a)) ?
yes
?-
The implementation (as stated in the manual --see the documentation
for the atom2term module listing) is partial (e.g., no ops, etc.) but
should be fine for most uses. If the full functionality is needed it
is better to call the reader (through a file or socket). We do have
plans to eventually make it possible for the reader to read directly
from a string.
Manuel H
--
----------------------- The Ciao System Development Team --------------------
The CLIP Group | Technical University of Madrid
ciao(a)clip.dia.fi.upm.es | University of New Mexico
http://www.cliplab.org /
http://www.ciaohome.org
-----------------------------------------------------------------------------
==============================================================================
Message: Address: Action:
help majordomo(a)clip.dia.fi.upm.es Info. on useful commands
subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list
unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list
<whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list
-----------------------------------------------------------------------------
Archived messages:
http://www.clip.dia.fi.upm.es/Mail/ciao-users/
-----------------------------------------------------------------------------