1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.51
from ./octave.texi on 18 June 1999 -->
<TITLE>GNU Octave - Grammar</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="octave_1.html">first</A>, <A HREF="octave_34.html">previous</A>, <A HREF="octave_36.html">next</A>, <A HREF="octave_40.html">last</A> section, <A HREF="octave_toc.html">table of contents</A>.
<P><HR><P>
<H1><A NAME="SEC200" HREF="octave_toc.html#TOC200">Grammar</A></H1>
<P>
<A NAME="IDX977"></A>
<A NAME="IDX978"></A>
</P>
<P>
Someday I hope to expand this to include a semi-formal description of
Octave's language.
</P>
<H2><A NAME="SEC201" HREF="octave_toc.html#TOC201">Keywords</A></H2>
<P>
<A NAME="IDX979"></A>
</P>
<P>
The following identifiers are keywords, and may not be used as variable
or function names:
</P>
<PRE>
all_va_args endwhile
break for
case function
catch global
continue gplot
else gsplot
elseif if
end otherwise
end_try_catch return
end_unwind_protect switch
endfor try
endfunction unwind_protect
endif unwind_protect_cleanup
endswitch while
</PRE>
<P>
The following command-like functions are also speical. They may be used
as simple variable names, but not as formal parameters for functions, or
as the names of structure variables. Failed assignments leave them
undefined (you can recover the orginal definition as a function using
clear).
</P>
<PRE>
casesen echo load show
cd edit_history ls type
chdir format more which
clear help run_history who
diary history save whos
dir hold set
</PRE>
<P>
<A NAME="IDX980"></A>
<A NAME="IDX981"></A>
<P><HR><P>
Go to the <A HREF="octave_1.html">first</A>, <A HREF="octave_34.html">previous</A>, <A HREF="octave_36.html">next</A>, <A HREF="octave_40.html">last</A> section, <A HREF="octave_toc.html">table of contents</A>.
</BODY>
</HTML>
|