1496
|
1 %{ |
|
2 |
7019
|
3 /* |
|
4 |
|
5 Copyright (C) 1995, 1997, 1998, 2000, 2002, 2004, 2005, 2006, |
|
6 2007 John W. Eaton |
|
7 |
|
8 This file is part of Octave. |
|
9 |
|
10 Octave is free software; you can redistribute it and/or modify it |
|
11 under the terms of the GNU General Public License as published by the |
|
12 Free Software Foundation; either version 3 of the License, or (at |
|
13 your option) any later version. |
|
14 |
|
15 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
18 for more details. |
|
19 |
|
20 You should have received a copy of the GNU General Public License |
|
21 along with Octave; see the file COPYING. If not, see |
|
22 <http://www.gnu.org/licenses/>. |
|
23 |
|
24 */ |
|
25 |
1496
|
26 enum octave_kw_id |
|
27 { |
|
28 break_kw, |
2764
|
29 case_kw, |
1496
|
30 catch_kw, |
|
31 continue_kw, |
3484
|
32 do_kw, |
1496
|
33 else_kw, |
|
34 elseif_kw, |
|
35 end_kw, |
|
36 end_try_catch_kw, |
|
37 end_unwind_protect_kw, |
|
38 endfor_kw, |
|
39 endfunction_kw, |
|
40 endif_kw, |
2764
|
41 endswitch_kw, |
1496
|
42 endwhile_kw, |
|
43 for_kw, |
|
44 function_kw, |
|
45 global_kw, |
|
46 if_kw, |
3174
|
47 magic_file_kw, |
|
48 magic_line_kw, |
2764
|
49 otherwise_kw, |
1496
|
50 return_kw, |
2846
|
51 static_kw, |
2764
|
52 switch_kw, |
1496
|
53 try_kw, |
3484
|
54 until_kw, |
1496
|
55 unwind_protect_kw, |
|
56 unwind_protect_cleanup_kw, |
3974
|
57 varargin_kw, |
|
58 varargout_kw, |
1496
|
59 while_kw |
|
60 }; |
|
61 |
|
62 %} |
5088
|
63 |
2804
|
64 struct octave_kw { const char *name; int tok; octave_kw_id kw_id; }; |
1496
|
65 %% |
|
66 break, BREAK, break_kw |
2764
|
67 case, CASE, case_kw |
1496
|
68 catch, CATCH, catch_kw |
|
69 continue, CONTINUE, continue_kw |
3484
|
70 do, DO, do_kw |
1496
|
71 else, ELSE, else_kw |
|
72 elseif, ELSEIF, elseif_kw |
|
73 end, END, end_kw |
|
74 end_try_catch, END, end_try_catch_kw |
|
75 end_unwind_protect, END, end_unwind_protect_kw |
|
76 endfor, END, endfor_kw |
|
77 endfunction, END, endfunction_kw |
|
78 endif, END, endif_kw |
2764
|
79 endswitch, END, endswitch_kw |
1496
|
80 endwhile, END, endwhile_kw |
|
81 for, FOR, for_kw |
|
82 function, FCN, function_kw |
|
83 global, GLOBAL, global_kw |
|
84 if, IF, if_kw |
2764
|
85 otherwise, OTHERWISE, otherwise_kw |
4166
|
86 persistent, STATIC, static_kw |
1496
|
87 return, FUNC_RET, return_kw |
2846
|
88 static, STATIC, static_kw |
2764
|
89 switch, SWITCH, switch_kw |
1496
|
90 try, TRY, try_kw |
3484
|
91 until, UNTIL, until_kw |
1496
|
92 unwind_protect, UNWIND, unwind_protect_kw |
|
93 unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw |
3974
|
94 varargin, VARARGIN, varargin_kw |
|
95 varargout, VARARGOUT, varargout_kw |
1496
|
96 while, WHILE, while_kw |
5279
|
97 __FILE__, DQ_STRING, magic_file_kw |
3174
|
98 __LINE__, NUM, magic_line_kw |