Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 2fc07611b08d4a735fd34d5eb60d8e16 > files > 2176

ciao-1.10p8-3mdv2010.0.i586.rpm

<HTML>
<HEAD>
<!-- Created by texi2html 1.56k + clip patches and <A href="http://www.clip.dia.fi.upm.es/Software">lpdoc</A> from ciao.texi on 28 January 2007 -->

<LINK rel="stylesheet" href="ciao.css" type="text/css">
<TITLE>The Ciao Prolog System               - parser (library)</TITLE>
</HEAD>
<BODY> 
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_220.html">previous</A>, <A HREF="ciao_222.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC862" HREF="ciao_toc.html#TOC862">parser (library)</A></H1>
<P>
<A NAME="IDX9404"></A>


<P>
<STRONG>Author(s):</STRONG> G&ouml;ran Smedb&auml;ck.



<UL>
<LI><A HREF="ciao_221.html#SEC863">Usage and interface (parser)</A>
<LI><A HREF="ciao_221.html#SEC864">Documentation on exports (parser)</A>
</UL>



<H2><A NAME="SEC863" HREF="ciao_toc.html#TOC863">Usage and interface (<CODE>parser</CODE>)</A></H2>

<div class="cartouche">

<UL>

<LI><STRONG>Library usage:</STRONG>

<CODE>:- use_module(library(parser)).</CODE>

<LI><STRONG>Exports:</STRONG>


<UL>

<LI><EM>Predicates:</EM>

<A NAME="IDX9405"></A>
<CODE>parser/2</CODE>, 
<A NAME="IDX9406"></A>
<CODE>nodeDeclaration/4</CODE>.

<LI><EM>Properties:</EM>

<A NAME="IDX9407"></A>
<CODE>field_Id/1</CODE>.

</UL>

<LI><STRONG>Other modules used:</STRONG>


<UL>

<LI><EM>System library modules:</EM>

<A NAME="IDX9408"></A>
<CODE>aggregates</CODE>, 
<A NAME="IDX9409"></A>
<CODE>dynamic</CODE>, 
<A NAME="IDX9410"></A>
<CODE>iso_misc</CODE>, 
<A NAME="IDX9411"></A>
<CODE>iso_byte_char</CODE>, 
<A NAME="IDX9412"></A>
<CODE>iso_incomplete</CODE>, 
<A NAME="IDX9413"></A>
<CODE>operators</CODE>, 
<A NAME="IDX9414"></A>
<CODE>read</CODE>, 
<A NAME="IDX9415"></A>
<CODE>write</CODE>, 
<A NAME="IDX9416"></A>
<CODE>lists</CODE>, 
<A NAME="IDX9417"></A>
<CODE>provrml/lookup</CODE>, 
<A NAME="IDX9418"></A>
<CODE>provrml/field_value</CODE>, 
<A NAME="IDX9419"></A>
<CODE>provrml/tokeniser</CODE>, 
<A NAME="IDX9420"></A>
<CODE>provrml/parser_util</CODE>, 
<A NAME="IDX9421"></A>
<CODE>provrml/possible</CODE>, 
<A NAME="IDX9422"></A>
<CODE>provrml/error</CODE>.

</UL>

</UL>

</div class="cartouche">



<H2><A NAME="SEC864" HREF="ciao_toc.html#TOC864">Documentation on exports (<CODE>parser</CODE>)</A></H2>
<P>
<A NAME="IDX9423"></A>
<A NAME="IDX9424"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>parser/2:</B>
<DD><A NAME="IDX9425"></A>


<P>
<STRONG>Usage:</STRONG> <CODE>parser(+VRML, -Terms)</CODE>

<UL>
<LI><EM>Description:</EM> The parser uses a tokeniser to read the input text string of VRML code and returns a list with the corresponding terms. The tokens will be read in this parser as the grammar says. The parser is according to the specification of the VRML grammar, accept that it is performed over tokens in sted of the actual code.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+VRML</CODE> is a string (a list of character codes).
 (<CODE>basic_props:string/1</CODE>)

<CODE>-Terms</CODE> is a list of <CODE>terms</CODE>s.
 (<CODE>basic_props:list/2</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX9426"></A>
<A NAME="IDX9427"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>nodeDeclaration/4:</B>
<DD><A NAME="IDX9428"></A>


<P>
No further documentation available for this predicate.


</DL>

<P>
<A NAME="IDX9429"></A>
<A NAME="IDX9430"></A>
<DL>
<DT><span class="define">PROPERTY:</span> <B>field_Id/1:</B>
<DD><A NAME="IDX9431"></A>


<P>
A property, defined as follows:

<PRE>

<PRE>
field_Id(_1).
</PRE>

</PRE>

</DL>

<P><HR><P>
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_220.html">previous</A>, <A HREF="ciao_222.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
</BODY>
</HTML>