Mercurial > octave-nkf
annotate src/octave.gperf @ 11542:695141f1c05c ss-3-3-55
snapshot 3.3.55
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 15 Jan 2011 04:53:04 -0500 |
parents | fd0a3ac60b0e |
children | 027a2186cd90 |
rev | line source |
---|---|
1496 | 1 %{ |
7019 | 2 /* |
3 | |
11523 | 4 Copyright (C) 1995-2011 John W. Eaton |
7019 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
10 Free Software Foundation; either version 3 of the License, or (at | |
11 your option) any later version. | |
12 | |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with Octave; see the file COPYING. If not, see | |
20 <http://www.gnu.org/licenses/>. | |
21 | |
8775
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
22 NOTE: gperf 2.7.2 will silently generate bad code if there are blank |
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
23 lines following the "%{" marker above. This comment block seems to be |
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
24 handled correctly. |
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
25 |
7019 | 26 */ |
1496 | 27 enum octave_kw_id |
28 { | |
29 break_kw, | |
2764 | 30 case_kw, |
1496 | 31 catch_kw, |
9476 | 32 classdef_kw, |
1496 | 33 continue_kw, |
3484 | 34 do_kw, |
1496 | 35 else_kw, |
36 elseif_kw, | |
37 end_kw, | |
38 end_try_catch_kw, | |
39 end_unwind_protect_kw, | |
9476 | 40 endclassdef_kw, |
41 endevents_kw, | |
1496 | 42 endfor_kw, |
43 endfunction_kw, | |
44 endif_kw, | |
9476 | 45 endmethods_kw, |
46 endproperties_kw, | |
2764 | 47 endswitch_kw, |
1496 | 48 endwhile_kw, |
9476 | 49 events_kw, |
1496 | 50 for_kw, |
51 function_kw, | |
9476 | 52 get_kw, |
1496 | 53 global_kw, |
54 if_kw, | |
3174 | 55 magic_file_kw, |
56 magic_line_kw, | |
9476 | 57 methods_kw, |
2764 | 58 otherwise_kw, |
9476 | 59 properties_kw, |
1496 | 60 return_kw, |
9476 | 61 set_kw, |
2846 | 62 static_kw, |
2764 | 63 switch_kw, |
1496 | 64 try_kw, |
3484 | 65 until_kw, |
1496 | 66 unwind_protect_kw, |
67 unwind_protect_cleanup_kw, | |
68 while_kw | |
69 }; | |
70 %} | |
2804 | 71 struct octave_kw { const char *name; int tok; octave_kw_id kw_id; }; |
1496 | 72 %% |
73 break, BREAK, break_kw | |
2764 | 74 case, CASE, case_kw |
1496 | 75 catch, CATCH, catch_kw |
9476 | 76 classdef, CLASSDEF, classdef_kw |
1496 | 77 continue, CONTINUE, continue_kw |
3484 | 78 do, DO, do_kw |
1496 | 79 else, ELSE, else_kw |
80 elseif, ELSEIF, elseif_kw | |
81 end, END, end_kw | |
82 end_try_catch, END, end_try_catch_kw | |
83 end_unwind_protect, END, end_unwind_protect_kw | |
9476 | 84 endclassdef, END, endclassdef_kw |
85 endevents, END, endevents_kw | |
1496 | 86 endfor, END, endfor_kw |
87 endfunction, END, endfunction_kw | |
88 endif, END, endif_kw | |
9476 | 89 endmethods, END, endmethods_kw |
90 endproperties, END, endproperties_kw | |
2764 | 91 endswitch, END, endswitch_kw |
1496 | 92 endwhile, END, endwhile_kw |
9476 | 93 events, EVENTS, events_kw |
1496 | 94 for, FOR, for_kw |
95 function, FCN, function_kw | |
9476 | 96 get, GET, get_kw |
1496 | 97 global, GLOBAL, global_kw |
98 if, IF, if_kw | |
9476 | 99 methods, METHODS, methods_kw |
2764 | 100 otherwise, OTHERWISE, otherwise_kw |
4166 | 101 persistent, STATIC, static_kw |
9476 | 102 properties, PROPERTIES, properties_kw |
1496 | 103 return, FUNC_RET, return_kw |
9476 | 104 set, SET, set_kw |
2846 | 105 static, STATIC, static_kw |
2764 | 106 switch, SWITCH, switch_kw |
1496 | 107 try, TRY, try_kw |
3484 | 108 until, UNTIL, until_kw |
1496 | 109 unwind_protect, UNWIND, unwind_protect_kw |
110 unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw | |
111 while, WHILE, while_kw | |
5279 | 112 __FILE__, DQ_STRING, magic_file_kw |
3174 | 113 __LINE__, NUM, magic_line_kw |