26 #if ! defined (octave_pt_const_h)
27 #define octave_pt_const_h 1
29 #include "octave-config.h"
60 int l = -1,
int c = -1)
78 void print (std::ostream& os,
bool pr_as_read_syntax =
false,
79 bool pr_orig_txt =
true);
81 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false,
82 bool pr_orig_txt =
true);
105 error (
"invalid number of output arguments for constant expression");
bool is_constant(void) const
tree_constant(const octave_value &v, int l=-1, int c=-1)
tree_constant(const octave_value &v, const std::string &ot, int l=-1, int c=-1)
~tree_constant(void)=default
void stash_original_text(const std::string &s)
void print(std::ostream &os, bool pr_as_read_syntax=false, bool pr_orig_txt=true)
tree_expression * dup(symbol_scope &scope) const
octave_value evaluate(tree_evaluator &, int nargout=1)
tree_constant(const tree_constant &)=delete
tree_constant(int l=-1, int c=-1)
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
std::string original_text(void) const
tree_constant & operator=(const tree_constant &)=delete
void print_raw(std::ostream &os, bool pr_as_read_syntax=false, bool pr_orig_txt=true)
void accept(tree_walker &tw)
bool rvalue_ok(void) const
virtual void visit_constant(tree_constant &)
void error(const char *fmt,...)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.