comparison 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
comparison
equal deleted inserted replaced
15194:0f0b795044c3 15195:2fc554ffbc28
1 %{
2 /*
3
4 Copyright (C) 1995-2012 John W. Eaton
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
22 NOTE: gperf 2.7.2 will silently generate bad code if there are blank
23 lines following the "%{" marker above. This comment block seems to be
24 handled correctly.
25
26 */
27 enum octave_kw_id
28 {
29 break_kw,
30 case_kw,
31 catch_kw,
32 classdef_kw,
33 continue_kw,
34 do_kw,
35 else_kw,
36 elseif_kw,
37 end_kw,
38 end_try_catch_kw,
39 end_unwind_protect_kw,
40 endclassdef_kw,
41 endenumeration_kw,
42 endevents_kw,
43 endfor_kw,
44 endfunction_kw,
45 endif_kw,
46 endmethods_kw,
47 endparfor_kw,
48 endproperties_kw,
49 endswitch_kw,
50 endwhile_kw,
51 enumeration_kw,
52 events_kw,
53 for_kw,
54 function_kw,
55 get_kw,
56 global_kw,
57 if_kw,
58 magic_file_kw,
59 magic_line_kw,
60 methods_kw,
61 otherwise_kw,
62 parfor_kw,
63 persistent_kw,
64 properties_kw,
65 return_kw,
66 set_kw,
67 static_kw,
68 switch_kw,
69 try_kw,
70 until_kw,
71 unwind_protect_kw,
72 unwind_protect_cleanup_kw,
73 while_kw
74 };
75 %}
76 struct octave_kw { const char *name; int tok; octave_kw_id kw_id; };
77 %%
78 break, BREAK, break_kw
79 case, CASE, case_kw
80 catch, CATCH, catch_kw
81 classdef, CLASSDEF, classdef_kw
82 continue, CONTINUE, continue_kw
83 do, DO, do_kw
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
89 endclassdef, END, endclassdef_kw
90 endenumeration, END, endenumeration_kw
91 endevents, END, endevents_kw
92 endfor, END, endfor_kw
93 endfunction, END, endfunction_kw
94 endif, END, endif_kw
95 endmethods, END, endmethods_kw
96 endparfor, END, endparfor_kw
97 endproperties, END, endproperties_kw
98 endswitch, END, endswitch_kw
99 endwhile, END, endwhile_kw
100 enumeration, ENUMERATION, enumeration_kw
101 events, EVENTS, events_kw
102 for, FOR, for_kw
103 function, FCN, function_kw
104 get, GET, get_kw
105 global, GLOBAL, global_kw
106 if, IF, if_kw
107 methods, METHODS, methods_kw
108 otherwise, OTHERWISE, otherwise_kw
109 parfor, PARFOR, parfor_kw
110 persistent, PERSISTENT, persistent_kw
111 properties, PROPERTIES, properties_kw
112 return, FUNC_RET, return_kw
113 set, SET, set_kw
114 static, PERSISTENT, static_kw
115 switch, SWITCH, switch_kw
116 try, TRY, try_kw
117 until, UNTIL, until_kw
118 unwind_protect, UNWIND, unwind_protect_kw
119 unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw
120 while, WHILE, while_kw
121 __FILE__, DQ_STRING, magic_file_kw
122 __LINE__, NUM, magic_line_kw