Mercurial > hg > octave-lyh
annotate doc/interpreter/grammar.txi @ 11446:67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 05 Jan 2011 20:22:12 -0800 |
parents | fd42779a8428 |
children | fd0a3ac60b0e |
rev | line source |
---|---|
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 |
11446
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
39 @item @code{__FILE__} @tab @code{__LINE__} @tab @code{break} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
40 @item @code{case} @tab @code{catch} @tab @code{classdef} |
6547 | 41 @item @code{continue} @tab @code{do} @tab @code{else} |
42 @item @code{elseif} @tab @code{end} @tab @code{end_try_catch} | |
11446
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
43 @item @code{end_unwind_protect} @tab @code{endclassdef} @tab @code{endevents} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
44 @item @code{endfor} @tab @code{endfunction} @tab @code{endif} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
45 @item @code{endmethods} @tab @code{endproperties} @tab @code{endswitch} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
46 @item @code{endwhile} @tab @code{events} @tab @code{for} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
47 @item @code{function} @tab @code{get} @tab @code{global} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
48 @item @code{if} @tab @code{methods} @tab @code{otherwise} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
49 @item @code{persistent} @tab @code{properties} @tab @code{return} |
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
50 @item @code{set} @tab @code{static} @tab @code{switch} |
6547 | 51 @item @code{try} @tab @code{until} @tab @code{unwind_protect} |
11446
67e3edbf8ff7
Update list of keywords in Grammar chapter of documentation.
Rik <octave@nomad.inbox5.com>
parents:
7018
diff
changeset
|
52 @item @code{unwind_protect_cleanup}@tab @code{while} |
6547 | 53 @end multitable |
6551 | 54 |
55 @DOCSTRING(iskeyword) |