comparison src/pt-pr-code.h @ 8658:73c4516fae10

New evaluator and debugger derived from tree-walker class
author John W. Eaton <jwe@octave.org>
date Wed, 04 Feb 2009 00:47:53 -0500
parents 5b4d278ec828
children eb63fbe60fab
comparison
equal deleted inserted replaced
8657:102e05821f93 8658:73c4516fae10
28 #include <string> 28 #include <string>
29 29
30 #include "comment-list.h" 30 #include "comment-list.h"
31 #include "pt-walk.h" 31 #include "pt-walk.h"
32 32
33 class tree_decl_command;
33 class tree_expression; 34 class tree_expression;
34 35
35 // How to print the code that the parse trees represent. 36 // How to print the code that the parse trees represent.
36 37
37 class 38 class
63 64
64 void visit_colon_expression (tree_colon_expression&); 65 void visit_colon_expression (tree_colon_expression&);
65 66
66 void visit_continue_command (tree_continue_command&); 67 void visit_continue_command (tree_continue_command&);
67 68
68 void visit_decl_command (tree_decl_command&); 69 void visit_global_command (tree_global_command&);
70
71 void visit_static_command (tree_static_command&);
69 72
70 void visit_decl_elt (tree_decl_elt&); 73 void visit_decl_elt (tree_decl_elt&);
71 74
72 void visit_decl_init_list (tree_decl_init_list&); 75 void visit_decl_init_list (tree_decl_init_list&);
73 76
157 // TRUE means we are at the beginning of a line. 160 // TRUE means we are at the beginning of a line.
158 bool beginning_of_line; 161 bool beginning_of_line;
159 162
160 // TRUE means we are printing newlines and indenting. 163 // TRUE means we are printing newlines and indenting.
161 bool printing_newlines; 164 bool printing_newlines;
165
166 void do_decl_command (tree_decl_command& cmd);
162 167
163 void reset_indent_level (void) { curr_print_indent_level = 0; } 168 void reset_indent_level (void) { curr_print_indent_level = 0; }
164 169
165 void increment_indent_level (void) { curr_print_indent_level += 2; } 170 void increment_indent_level (void) { curr_print_indent_level += 2; }
166 171