Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 1537

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>C Application Programmer's Interface</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node10.html#appendix.devel">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node12.html#appendix.limitations">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="appendix.api"><H1><A name="appendix.api">C Application Programmer's Interface</A></H1><P> This section documents some functions that might be useful to users wanting to write their own Oz-syntax-aware commands. All of these commands respect Oz syntax w.&nbsp;r.&nbsp;t. quoted elements. </P><DL><DT class="function"><A name="label251"></A><SPAN class="index"><CODE>oz-is-quoted</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>function</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P>Return non-<CODE>nil</CODE> iff point is inside a string, quoted atom, backquote variable, ampersand-denoted character or end-of-line comment. In this case, move the point to the beginning of the corresponding token. Else point is not moved. </P></DD><DT class="function"><A name="label252"></A><SPAN class="index"><CODE>oz-backward-keyword</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>function</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DT class="function"><A name="label253"></A><SPAN class="index"><CODE>oz-forward-keyword</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>function</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P>Search backward resp. forward for the last resp. next keyword or parenthesis preceding resp. following point. Return non-<CODE>nil</CODE> iff such was found. Ignore quoted keywords. Point is left at the first character of the keyword. </P></DD><DT class="function"><A name="label254"></A><SPAN class="index"><CODE>oz-backward-begin</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>function</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P>Move to the last unmatched start of a bracketed Oz construct and return column of point. </P></DD><DT class="function"><A name="label255"></A><SPAN class="index"><CODE>oz-forward-end</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>function</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P>Move point to the next unmatched <A name="label256"></A><SPAN class="index"><CODE><SPAN class="keyword">end</SPAN></CODE></SPAN>. </P></DD><DT class="function"><A name="label257"></A><SPAN class="index"><CODE>oz-backward-paren</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>function</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P>Move to the last unmatched opening parenthesis and return column of point. </P></DD><DT class="function"><A name="label258"></A><SPAN class="index"><CODE>oz-forward-paren</CODE></SPAN> <SPAN class="entrycategory"><SPAN class="entrycategorybracket">&nbsp;[</SPAN><I>function</I><SPAN class="entrycategorybracket">]</SPAN></SPAN></DT><DD><P>Move to the next unmatched closing parenthesis. </P></DD></DL><P> </P><P> Please submit interesting commands you formulate using these functions to the author. </P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node10.html#appendix.devel">&lt;&lt; Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="node12.html#appendix.limitations">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~kornstae/">Leif&nbsp;Kornstaedt</A> and&nbsp;<A href="http://www.ps.uni-sb.de/~duchier/">Denys&nbsp;Duchier</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>