6778
|
1 @c Copyright (C) 1996, 1997, 2007 John W. Eaton |
7018
|
2 @c |
|
3 @c This file is part of Octave. |
|
4 @c |
|
5 @c Octave is free software; you can redistribute it and/or modify it |
|
6 @c under the terms of the GNU General Public License as published by the |
|
7 @c Free Software Foundation; either version 3 of the License, or (at |
|
8 @c your option) any later version. |
|
9 @c |
|
10 @c Octave is distributed in the hope that it will be useful, but WITHOUT |
|
11 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 @c for more details. |
|
14 @c |
|
15 @c You should have received a copy of the GNU General Public License |
|
16 @c along with Octave; see the file COPYING. If not, see |
|
17 @c <http://www.gnu.org/licenses/>. |
3294
|
18 |
4167
|
19 @node Grammar |
3449
|
20 @appendix Grammar |
3294
|
21 @cindex grammar rules |
|
22 @cindex language definition |
|
23 |
6547
|
24 This appendix should eventually contain a semi-formal description of |
3294
|
25 Octave's language. |
|
26 |
|
27 @menu |
|
28 * Keywords:: |
|
29 @end menu |
|
30 |
4167
|
31 @node Keywords |
3294
|
32 @section Keywords |
|
33 @cindex keywords |
|
34 |
|
35 The following identifiers are keywords, and may not be used as variable |
|
36 or function names: |
|
37 |
6547
|
38 @multitable @columnfractions .33 .33 .33 |
|
39 @item @code{break} @tab @code{case} @tab @code{catch} |
|
40 @item @code{continue} @tab @code{do} @tab @code{else} |
|
41 @item @code{elseif} @tab @code{end} @tab @code{end_try_catch} |
|
42 @item @code{end_unwind_protect} @tab @code{endfor} @tab @code{endfunction} |
|
43 @item @code{endif} @tab @code{endswitch} @tab @code{endwhile} |
|
44 @item @code{for} @tab @code{function} @tab @code{global} |
|
45 @item @code{if} @tab @code{otherwise} @tab @code{persistent} |
|
46 @item @code{return} @tab @code{static} @tab @code{switch} |
|
47 @item @code{try} @tab @code{until} @tab @code{unwind_protect} |
|
48 @item @code{unwind_protect_cleanup} @tab @code{varargin} @tab @code{varargout} |
|
49 @item @code{while} @tab @code{__FILE__} @tab @code{__LINE__} |
|
50 @end multitable |
6551
|
51 |
|
52 @DOCSTRING(iskeyword) |