comparison src/pt.h @ 3770:bf6116ca10eb

[project @ 2001-02-02 02:21:40 by jwe]
author jwe
date Fri, 02 Feb 2001 02:21:42 +0000
parents b80bbb43a1a9
children e44ffad3d06c
comparison
equal deleted inserted replaced
3769:7c8e3c42ed04 3770:bf6116ca10eb
38 class 38 class
39 tree 39 tree
40 { 40 {
41 public: 41 public:
42 42
43 tree (int l = -1, int c = -1) 43 tree (int l = -1, int c = -1) : break_point(false)
44 { 44 {
45 line_num = l; 45 line_num = l;
46 column_num = c; 46 column_num = c;
47 } 47 }
48 48
56 56
57 virtual void accept (tree_walker& tw) = 0; 57 virtual void accept (tree_walker& tw) = 0;
58 58
59 std::string str_print_code (void); 59 std::string str_print_code (void);
60 60
61 virtual void set_breakpoint (void)
62 { break_point = true; }
63
64 virtual void delete_breakpoint (void)
65 { break_point = false; }
66
67 virtual bool is_breakpoint (void) const
68 { return break_point; }
69
61 private: 70 private:
62 71
63 // The input line and column where we found the text that was 72 // The input line and column where we found the text that was
64 // eventually converted to this tree node. 73 // eventually converted to this tree node.
65 int line_num; 74 int line_num;
66 int column_num; 75 int column_num;
76
77 // Stop before executing this tree node
78 bool break_point;
67 79
68 // No copying! 80 // No copying!
69 81
70 tree (const tree&); 82 tree (const tree&);
71 83