Mercurial > hg > octave-nkf
annotate libinterp/parse-tree/octave.gperf @ 20830:b65888ec820e draft default tip gccjit
dmalcom gcc jit import
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Fri, 27 Feb 2015 16:59:36 +0100 |
parents | 4197fc428c7d |
children |
rev | line source |
---|---|
1496 | 1 %{ |
7019 | 2 /* |
3 | |
19898
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19793
diff
changeset
|
4 Copyright (C) 1995-2015 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, |
13249
7861a5fd3479
accept enumeration keyword
John W. Eaton <jwe@octave.org>
parents:
13246
diff
changeset
|
41 endenumeration_kw, |
9476 | 42 endevents_kw, |
1496 | 43 endfor_kw, |
44 endfunction_kw, | |
45 endif_kw, | |
9476 | 46 endmethods_kw, |
13246 | 47 endparfor_kw, |
9476 | 48 endproperties_kw, |
2764 | 49 endswitch_kw, |
1496 | 50 endwhile_kw, |
13249
7861a5fd3479
accept enumeration keyword
John W. Eaton <jwe@octave.org>
parents:
13246
diff
changeset
|
51 enumeration_kw, |
9476 | 52 events_kw, |
1496 | 53 for_kw, |
54 function_kw, | |
9476 | 55 get_kw, |
1496 | 56 global_kw, |
57 if_kw, | |
3174 | 58 magic_file_kw, |
59 magic_line_kw, | |
9476 | 60 methods_kw, |
2764 | 61 otherwise_kw, |
13245
027a2186cd90
parfor keyword and infrastructure, but handle parfor as normal for loop for now
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
62 parfor_kw, |
14294
9e3983c8963c
deprecate the static keyword
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
63 persistent_kw, |
9476 | 64 properties_kw, |
1496 | 65 return_kw, |
9476 | 66 set_kw, |
2764 | 67 switch_kw, |
1496 | 68 try_kw, |
3484 | 69 until_kw, |
1496 | 70 unwind_protect_kw, |
71 unwind_protect_cleanup_kw, | |
72 while_kw | |
73 }; | |
74 %} | |
2804 | 75 struct octave_kw { const char *name; int tok; octave_kw_id kw_id; }; |
1496 | 76 %% |
77 break, BREAK, break_kw | |
2764 | 78 case, CASE, case_kw |
1496 | 79 catch, CATCH, catch_kw |
9476 | 80 classdef, CLASSDEF, classdef_kw |
1496 | 81 continue, CONTINUE, continue_kw |
3484 | 82 do, DO, do_kw |
1496 | 83 else, ELSE, else_kw |
84 elseif, ELSEIF, elseif_kw | |
85 end, END, end_kw | |
86 end_try_catch, END, end_try_catch_kw | |
87 end_unwind_protect, END, end_unwind_protect_kw | |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
88 endclassdef, END, endclassdef_kw |
13249
7861a5fd3479
accept enumeration keyword
John W. Eaton <jwe@octave.org>
parents:
13246
diff
changeset
|
89 endenumeration, END, endenumeration_kw |
9476 | 90 endevents, END, endevents_kw |
1496 | 91 endfor, END, endfor_kw |
92 endfunction, END, endfunction_kw | |
93 endif, END, endif_kw | |
9476 | 94 endmethods, END, endmethods_kw |
13246 | 95 endparfor, END, endparfor_kw |
9476 | 96 endproperties, END, endproperties_kw |
2764 | 97 endswitch, END, endswitch_kw |
1496 | 98 endwhile, END, endwhile_kw |
13249
7861a5fd3479
accept enumeration keyword
John W. Eaton <jwe@octave.org>
parents:
13246
diff
changeset
|
99 enumeration, ENUMERATION, enumeration_kw |
9476 | 100 events, EVENTS, events_kw |
1496 | 101 for, FOR, for_kw |
102 function, FCN, function_kw | |
9476 | 103 get, GET, get_kw |
1496 | 104 global, GLOBAL, global_kw |
105 if, IF, if_kw | |
9476 | 106 methods, METHODS, methods_kw |
2764 | 107 otherwise, OTHERWISE, otherwise_kw |
13245
027a2186cd90
parfor keyword and infrastructure, but handle parfor as normal for loop for now
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
108 parfor, PARFOR, parfor_kw |
14294
9e3983c8963c
deprecate the static keyword
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
109 persistent, PERSISTENT, persistent_kw |
9476 | 110 properties, PROPERTIES, properties_kw |
1496 | 111 return, FUNC_RET, return_kw |
9476 | 112 set, SET, set_kw |
2764 | 113 switch, SWITCH, switch_kw |
1496 | 114 try, TRY, try_kw |
3484 | 115 until, UNTIL, until_kw |
1496 | 116 unwind_protect, UNWIND, unwind_protect_kw |
117 unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw | |
118 while, WHILE, while_kw | |
5279 | 119 __FILE__, DQ_STRING, magic_file_kw |
3174 | 120 __LINE__, NUM, magic_line_kw |