26#if ! defined (octave_pt_const_h)
27#define octave_pt_const_h 1
29#include "octave-config.h"
53 : m_value (v), m_token (tok)
57 : m_value (v), m_orig_text (ot), m_token (tok)
76 void print (std::ostream& os,
bool pr_as_read_syntax =
false,
77 bool pr_orig_txt =
true);
79 void print_raw (std::ostream& os,
bool pr_as_read_syntax =
false,
80 bool pr_orig_txt =
true);
105 error (
"invalid number of output arguments for constant expression");
112 return ovl (evaluate (tw, nargout));
121 std::string m_orig_text;
126OCTAVE_END_NAMESPACE(octave)
tree_constant(const octave_value &v, const std::string &ot, const token &tok)
comment_list leading_comments() const
void stash_original_text(const std::string &s)
std::string original_text() const
comment_list trailing_comments() const
tree_constant(const octave_value &v, const token &tok)
octave_value evaluate(tree_evaluator &, int nargout=1)
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
void accept(tree_walker &tw)
token const_token() const
virtual tree_expression * dup(symbol_scope &scope) const =0
virtual void visit_constant(tree_constant &)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void error(const char *fmt,...)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.