Mercurial > hg > octave-lyh
annotate libinterp/parse-tree/octave.gperf @ 15195:2fc554ffbc28
split libinterp from src
* libinterp: New directory. Move all files from src directory here
except Makefile.am, main.cc, main-cli.cc, mkoctfile.in.cc,
mkoctfilr.in.sh, octave-config.in.cc, octave-config.in.sh.
* libinterp/Makefile.am: New file, extracted from src/Makefile.am.
* src/Makefile.am: Delete everything except targets and definitions
needed to build and link main and utility programs.
* Makefile.am (SUBDIRS): Include libinterp in the list.
* autogen.sh: Run config-module.sh in libinterp/dldfcn directory, not
src/dldfcn directory.
* configure.ac (AC_CONFIG_SRCDIR): Use libinterp/octave.cc, not
src/octave.cc.
(DL_LDFLAGS, LIBOCTINTERP): Use libinterp, not src.
(AC_CONFIG_FILES): Include libinterp/Makefile in the list.
* find-docstring-files.sh: Look in libinterp, not src.
* gui/src/Makefile.am (liboctgui_la_CPPFLAGS): Find header files in
libinterp, not src.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 18 Aug 2012 16:23:39 -0400 |
parents | src/parse-tree/octave.gperf@909a2797935b |
children |
rev | line source |
---|---|
1496 | 1 %{ |
7019 | 2 /* |
3 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
13249
diff
changeset
|
4 Copyright (C) 1995-2012 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, |
2846 | 67 static_kw, |
2764 | 68 switch_kw, |
1496 | 69 try_kw, |
3484 | 70 until_kw, |
1496 | 71 unwind_protect_kw, |
72 unwind_protect_cleanup_kw, | |
73 while_kw | |
74 }; | |
75 %} | |
2804 | 76 struct octave_kw { const char *name; int tok; octave_kw_id kw_id; }; |
1496 | 77 %% |
78 break, BREAK, break_kw | |
2764 | 79 case, CASE, case_kw |
1496 | 80 catch, CATCH, catch_kw |
9476 | 81 classdef, CLASSDEF, classdef_kw |
1496 | 82 continue, CONTINUE, continue_kw |
3484 | 83 do, DO, do_kw |
1496 | 84 else, ELSE, else_kw |
85 elseif, ELSEIF, elseif_kw | |
86 end, END, end_kw | |
87 end_try_catch, END, end_try_catch_kw | |
88 end_unwind_protect, END, end_unwind_protect_kw | |
9476 | 89 endclassdef, END, endclassdef_kw |
13249
7861a5fd3479
accept enumeration keyword
John W. Eaton <jwe@octave.org>
parents:
13246
diff
changeset
|
90 endenumeration, END, endenumeration_kw |
9476 | 91 endevents, END, endevents_kw |
1496 | 92 endfor, END, endfor_kw |
93 endfunction, END, endfunction_kw | |
94 endif, END, endif_kw | |
9476 | 95 endmethods, END, endmethods_kw |
13246 | 96 endparfor, END, endparfor_kw |
9476 | 97 endproperties, END, endproperties_kw |
2764 | 98 endswitch, END, endswitch_kw |
1496 | 99 endwhile, END, endwhile_kw |
13249
7861a5fd3479
accept enumeration keyword
John W. Eaton <jwe@octave.org>
parents:
13246
diff
changeset
|
100 enumeration, ENUMERATION, enumeration_kw |
9476 | 101 events, EVENTS, events_kw |
1496 | 102 for, FOR, for_kw |
103 function, FCN, function_kw | |
9476 | 104 get, GET, get_kw |
1496 | 105 global, GLOBAL, global_kw |
106 if, IF, if_kw | |
9476 | 107 methods, METHODS, methods_kw |
2764 | 108 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
|
109 parfor, PARFOR, parfor_kw |
14294
9e3983c8963c
deprecate the static keyword
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
110 persistent, PERSISTENT, persistent_kw |
9476 | 111 properties, PROPERTIES, properties_kw |
1496 | 112 return, FUNC_RET, return_kw |
9476 | 113 set, SET, set_kw |
14294
9e3983c8963c
deprecate the static keyword
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
114 static, PERSISTENT, static_kw |
2764 | 115 switch, SWITCH, switch_kw |
1496 | 116 try, TRY, try_kw |
3484 | 117 until, UNTIL, until_kw |
1496 | 118 unwind_protect, UNWIND, unwind_protect_kw |
119 unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw | |
120 while, WHILE, while_kw | |
5279 | 121 __FILE__, DQ_STRING, magic_file_kw |
3174 | 122 __LINE__, NUM, magic_line_kw |