Re: Help Using pldoc_process:doc_comment/4

Nicos Angelopoulos (Univ of York) <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <20130728224917.51e71fb3@naga>
Dear Ian,

On Mon, 22 Jul 2013 00:29:31 -0700
Ian Tegebo <[email protected]> wrote:

> I'd like to process comments for files without worrying about
> compiling them or otherwise creating side-effects that may be
> problematic.  The purpose would be for command completion hints.
> 
> At first, I thought I could use read_clause and/or read_term.  It
> seems that 'pldoc.pl' needs to be loaded beforehand but I can't seem
> to figure out exactly how the state is handled and why I can't just
> run a file through read_clause and then be able to call
> pldoc_process:doc_comment/4.
> 
> Any suggestions would be appreciated,
> --
> Ian Tegebo

	If what you mean by "process", is SWI's internal processing of comments as
	per when you load a file, you can take a look at 

	xref_source(+Source)
	http://www.swi-prolog.org/pldoc/doc_for?object=xref_source/1
	and 
	http://www.swi-prolog.org/pldoc/man?section=prolog_xref

	I am not sure if that the best way to do this, 
	but this is the closest I found when i built the spuds pack few months ago. 
	I suspect you trying to achive something similar.

Hope it helps,

Nicos Angelopoulos
---
http://bioinformatics.nki.nl/~n.angelopoulos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.