Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > b38d2da330d1936e5ab1307c039c4941 > files > 330

octave-doc-3.6.4-3.mga4.noarch.rpm

<html lang="en">
<head>
<title>Keywords - GNU Octave</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Octave">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Grammar-and-Parser.html#Grammar-and-Parser" title="Grammar and Parser">
<link rel="next" href="Parser.html#Parser" title="Parser">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Keywords"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Parser.html#Parser">Parser</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Grammar-and-Parser.html#Grammar-and-Parser">Grammar and Parser</a>
<hr>
</div>

<h3 class="section">I.1 Keywords</h3>

<p><a name="index-keywords-3461"></a>
The following identifiers are keywords, and may not be used as variable
or function names:

   <p><table summary=""><tr align="left"><td valign="top" width="33%"><code>__FILE__</code> </td><td valign="top" width="33%"><code>__LINE__</code> </td><td valign="top" width="33%"><code>break</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>case</code> </td><td valign="top" width="33%"><code>catch</code> </td><td valign="top" width="33%"><code>classdef</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>continue</code> </td><td valign="top" width="33%"><code>do</code> </td><td valign="top" width="33%"><code>else</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>elseif</code> </td><td valign="top" width="33%"><code>end</code> </td><td valign="top" width="33%"><code>end_try_catch</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>end_unwind_protect</code> </td><td valign="top" width="33%"><code>endclassdef</code> </td><td valign="top" width="33%"><code>endenumeration</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>endevents</code> </td><td valign="top" width="33%"><code>endfor</code> </td><td valign="top" width="33%"><code>endfunction</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>endif</code> </td><td valign="top" width="33%"><code>endmethods</code> </td><td valign="top" width="33%"><code>endparfor</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>endproperties</code> </td><td valign="top" width="33%"><code>endswitch</code> </td><td valign="top" width="33%"><code>endwhile</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>enumeration</code> </td><td valign="top" width="33%"><code>events</code> </td><td valign="top" width="33%"><code>for</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>function</code> </td><td valign="top" width="33%"><code>get</code> </td><td valign="top" width="33%"><code>global</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>if</code> </td><td valign="top" width="33%"><code>methods</code> </td><td valign="top" width="33%"><code>otherwise</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>parfor</code> </td><td valign="top" width="33%"><code>persistent</code> </td><td valign="top" width="33%"><code>properties</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>return</code> </td><td valign="top" width="33%"><code>set</code> </td><td valign="top" width="33%"><code>static</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>switch</code> </td><td valign="top" width="33%"><code>try</code> </td><td valign="top" width="33%"><code>until</code>
<br></td></tr><tr align="left"><td valign="top" width="33%"><code>unwind_protect</code> </td><td valign="top" width="33%"><code>unwind_protect_cleanup</code> </td><td valign="top" width="33%"><code>while</code>
   <br></td></tr></table>

   <p>The function <code>iskeyword</code> can be used to quickly check whether an
identifier is reserved by Octave.

<!-- iskeyword src/lex.cc -->
   <p><a name="doc_002diskeyword"></a>

<div class="defun">
&mdash; Built-in Function:  <b>iskeyword</b> ()<var><a name="index-iskeyword-3462"></a></var><br>
&mdash; Built-in Function:  <b>iskeyword</b> (<var>name</var>)<var><a name="index-iskeyword-3463"></a></var><br>
<blockquote><p>Return true if <var>name</var> is an Octave keyword.  If <var>name</var>
is omitted, return a list of keywords. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002disvarname.html#doc_002disvarname">isvarname</a>, <a href="doc_002dexist.html#doc_002dexist">exist</a>. 
</p></blockquote></div>

   </body></html>