diff src/pt-pr-code.h @ 2530:64f403ef483d

[project @ 1996-11-19 18:06:02 by jwe]
author jwe
date Tue, 19 Nov 1996 18:11:18 +0000
parents b21b42c25350
children 5c773d4745d6
line wrap: on
line diff
--- a/src/pt-pr-code.h
+++ b/src/pt-pr-code.h
@@ -27,6 +27,8 @@
 #pragma interface
 #endif
 
+#include <string>
+
 #include "pt-walk.h"
 
 // How to print the code that the parse trees represent.
@@ -36,7 +38,9 @@
 {
 public:
 
-  tree_print_code (ostream& os_arg) : os (os_arg) { }
+  tree_print_code (ostream& os_arg, const string& pfx = string (),
+		   bool pr_orig_txt = true)
+    : os (os_arg), prefix (pfx), print_original_text (pr_orig_txt) { }
 
   ~tree_print_code (void) { }
 
@@ -130,6 +134,10 @@
 
   ostream& os;
 
+  string prefix;
+
+  bool print_original_text;
+
   static int curr_print_indent_level;
   static bool beginning_of_line;