comparison src/pt-walk.h @ 14294:9e3983c8963c

deprecate the static keyword * octave.gperf: Use PERSISTENT as the token for "static" and "persistent" but use separate static_kw and persistent_kw values so we can distinguish them. * lex.ll (is_keyword_token): Handle static_kw and persistent_kw separately. Generate deprecated keyword warning for static_kw. * oct-parse.cc: Use PERSISTENT token instead of STATIC. * pt-decl.h, pt-decl.cc (tree_persistent_command): Rename from tree_static_command. Change all uses. * pt-walk.h (tree_walker::visit_persistent_command): Rename from visit_static_command. Change all derived classes. * NEWS: note that static has been deprecated.
author John W. Eaton <jwe@octave.org>
date Mon, 30 Jan 2012 23:42:41 -0500
parents 72c96de7a403
children a820a990968e
comparison
equal deleted inserted replaced
14293:71a198cca35b 14294:9e3983c8963c
28 class tree_binary_expression; 28 class tree_binary_expression;
29 class tree_break_command; 29 class tree_break_command;
30 class tree_colon_expression; 30 class tree_colon_expression;
31 class tree_continue_command; 31 class tree_continue_command;
32 class tree_global_command; 32 class tree_global_command;
33 class tree_static_command; 33 class tree_persistent_command;
34 class tree_decl_elt; 34 class tree_decl_elt;
35 class tree_decl_init_list; 35 class tree_decl_init_list;
36 class tree_simple_for_command; 36 class tree_simple_for_command;
37 class tree_complex_for_command; 37 class tree_complex_for_command;
38 class octave_user_script; 38 class octave_user_script;
90 90
91 virtual void 91 virtual void
92 visit_global_command (tree_global_command&) = 0; 92 visit_global_command (tree_global_command&) = 0;
93 93
94 virtual void 94 virtual void
95 visit_static_command (tree_static_command&) = 0; 95 visit_persistent_command (tree_persistent_command&) = 0;
96 96
97 virtual void 97 virtual void
98 visit_decl_elt (tree_decl_elt&) = 0; 98 visit_decl_elt (tree_decl_elt&) = 0;
99 99
100 virtual void 100 virtual void