view doc/interpreter/grammar.txi @ 11523:fd0a3ac60b0e

update copyright notices
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jan 2011 05:47:45 -0500
parents 67e3edbf8ff7
children 232a90612254
line wrap: on
line source

@c Copyright (C) 1996-2011 John W. Eaton
@c
@c This file is part of Octave.
@c
@c Octave is free software; you can redistribute it and/or modify it
@c under the terms of the GNU General Public License as published by the
@c Free Software Foundation; either version 3 of the License, or (at
@c your option) any later version.
@c 
@c Octave is distributed in the hope that it will be useful, but WITHOUT
@c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
@c FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
@c for more details.
@c 
@c You should have received a copy of the GNU General Public License
@c along with Octave; see the file COPYING.  If not, see
@c <http://www.gnu.org/licenses/>.

@node Grammar
@appendix Grammar
@cindex grammar rules
@cindex language definition

This appendix should eventually contain a semi-formal description of
Octave's language.

@menu
* Keywords::                    
@end menu

@node Keywords
@section Keywords
@cindex keywords

The following identifiers are keywords, and may not be used as variable
or function names:

@multitable @columnfractions .33 .33 .33
@item @code{__FILE__} @tab @code{__LINE__} @tab @code{break}
@item @code{case} @tab @code{catch} @tab @code{classdef}
@item @code{continue} @tab @code{do} @tab @code{else}
@item @code{elseif} @tab @code{end} @tab @code{end_try_catch}
@item @code{end_unwind_protect} @tab @code{endclassdef} @tab @code{endevents}
@item @code{endfor} @tab @code{endfunction} @tab @code{endif}
@item @code{endmethods} @tab @code{endproperties} @tab @code{endswitch}
@item @code{endwhile} @tab @code{events} @tab @code{for}
@item @code{function} @tab @code{get} @tab @code{global}
@item @code{if} @tab @code{methods} @tab @code{otherwise}
@item @code{persistent} @tab @code{properties} @tab @code{return}
@item @code{set} @tab @code{static} @tab @code{switch}
@item @code{try} @tab @code{until} @tab @code{unwind_protect}
@item @code{unwind_protect_cleanup}@tab @code{while}
@end multitable

@DOCSTRING(iskeyword)