Mercurial > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/src/pt.h Wed Jan 31 22:15:55 2001 +0000 +++ b/src/pt.h Fri Feb 02 02:21:42 2001 +0000 @@ -40,7 +40,7 @@ { public: - tree (int l = -1, int c = -1) + tree (int l = -1, int c = -1) : break_point(false) { line_num = l; column_num = c; @@ -58,6 +58,15 @@ std::string str_print_code (void); + virtual void set_breakpoint (void) + { break_point = true; } + + virtual void delete_breakpoint (void) + { break_point = false; } + + virtual bool is_breakpoint (void) const + { return break_point; } + private: // The input line and column where we found the text that was @@ -65,6 +74,9 @@ int line_num; int column_num; + // Stop before executing this tree node + bool break_point; + // No copying! tree (const tree&);