Mercurial > octave-nkf
comparison src/pt-check.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 |
---|---|
24 #if !defined (octave_tree_checker_h) | 24 #if !defined (octave_tree_checker_h) |
25 #define octave_tree_checker_h 1 | 25 #define octave_tree_checker_h 1 |
26 | 26 |
27 #include "pt-walk.h" | 27 #include "pt-walk.h" |
28 | 28 |
29 class tree_decl_command; | |
30 | |
29 // How to check the semantics of the code that the parse trees represent. | 31 // How to check the semantics of the code that the parse trees represent. |
30 | 32 |
31 class | 33 class |
32 tree_checker : public tree_walker | 34 tree_checker : public tree_walker |
33 { | 35 { |
46 | 48 |
47 void visit_colon_expression (tree_colon_expression&); | 49 void visit_colon_expression (tree_colon_expression&); |
48 | 50 |
49 void visit_continue_command(tree_continue_command&); | 51 void visit_continue_command(tree_continue_command&); |
50 | 52 |
51 void visit_decl_command (tree_decl_command&); | 53 void visit_global_command (tree_global_command&); |
54 | |
55 void visit_static_command (tree_static_command&); | |
52 | 56 |
53 void visit_decl_elt (tree_decl_elt&); | 57 void visit_decl_elt (tree_decl_elt&); |
54 | 58 |
55 void visit_decl_init_list (tree_decl_init_list&); | 59 void visit_decl_init_list (tree_decl_init_list&); |
56 | 60 |
120 | 124 |
121 private: | 125 private: |
122 | 126 |
123 bool do_lvalue_check; | 127 bool do_lvalue_check; |
124 | 128 |
129 void do_decl_command (tree_decl_command&); | |
130 | |
125 void gripe (const std::string& msg, int line); | 131 void gripe (const std::string& msg, int line); |
126 | 132 |
127 // No copying! | 133 // No copying! |
128 | 134 |
129 tree_checker (const tree_checker&); | 135 tree_checker (const tree_checker&); |