Mercurial > octave-nkf
comparison src/pt-const.h @ 10313:f3b65e1ae355
untabify src header files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:16:43 -0500 |
parents | cd96d29c5efa |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
10312:cbc402e64d83 | 10313:f3b65e1ae355 |
---|---|
47 | 47 |
48 tree_constant (const octave_value& v, int l = -1, int c = -1) | 48 tree_constant (const octave_value& v, int l = -1, int c = -1) |
49 : tree_expression (l, c), val (v), orig_text () { } | 49 : tree_expression (l, c), val (v), orig_text () { } |
50 | 50 |
51 tree_constant (const octave_value& v, const std::string& ot, | 51 tree_constant (const octave_value& v, const std::string& ot, |
52 int l = -1, int c = -1) | 52 int l = -1, int c = -1) |
53 : tree_expression (l, c), val (v), orig_text (ot) { } | 53 : tree_expression (l, c), val (v), orig_text (ot) { } |
54 | 54 |
55 ~tree_constant (void) { } | 55 ~tree_constant (void) { } |
56 | 56 |
57 bool has_magic_end (void) const { return false; } | 57 bool has_magic_end (void) const { return false; } |
65 bool is_constant (void) const { return true; } | 65 bool is_constant (void) const { return true; } |
66 | 66 |
67 void maybe_mutate (void) { val.maybe_mutate (); } | 67 void maybe_mutate (void) { val.maybe_mutate (); } |
68 | 68 |
69 void print (std::ostream& os, bool pr_as_read_syntax = false, | 69 void print (std::ostream& os, bool pr_as_read_syntax = false, |
70 bool pr_orig_txt = true); | 70 bool pr_orig_txt = true); |
71 | 71 |
72 void print_raw (std::ostream& os, bool pr_as_read_syntax = false, | 72 void print_raw (std::ostream& os, bool pr_as_read_syntax = false, |
73 bool pr_orig_txt = true); | 73 bool pr_orig_txt = true); |
74 | 74 |
75 bool rvalue_ok (void) const { return true; } | 75 bool rvalue_ok (void) const { return true; } |
76 | 76 |
77 octave_value rvalue1 (int = 1) { return val; } | 77 octave_value rvalue1 (int = 1) { return val; } |
78 | 78 |
79 octave_value_list rvalue (int nargout); | 79 octave_value_list rvalue (int nargout); |
80 | 80 |
81 tree_expression *dup (symbol_table::scope_id scope, | 81 tree_expression *dup (symbol_table::scope_id scope, |
82 symbol_table::context_id context) const; | 82 symbol_table::context_id context) const; |
83 | 83 |
84 void accept (tree_walker& tw); | 84 void accept (tree_walker& tw); |
85 | 85 |
86 // Store the original text corresponding to this constant for later | 86 // Store the original text corresponding to this constant for later |
87 // pretty printing. | 87 // pretty printing. |