26#if ! defined (octave_pt_id_h)
27#define octave_pt_id_h 1
29#include "octave-config.h"
61 : m_sym (scope ? scope.insert (tok.text ()) :
symbol_record (tok.text ())),
71 std::string
name ()
const {
return m_sym.name (); }
90 void eval_undefined_error ();
94 error (R
"(can not add variable "%s" to a static workspace)",
124 m_get_set_tok = get_set_tok;
133 : m_sym (sym), m_token (tok)
161 std::string
name ()
const {
return "~"; }
175OCTAVE_END_NAMESPACE(octave)
octave_idx_type length() const
~tree_black_hole()=default
tree_black_hole * dup(symbol_scope &) const
token tilde_token() const
bool is_black_hole() const
tree_black_hole(const token &token)
virtual tree_expression * dup(symbol_scope &scope) const =0
virtual octave_lvalue lvalue(tree_evaluator &)
virtual octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)=0
void mark_as_formal_parameter()
tree_identifier(const token &tok)
tree_identifier * mark_get_set(const token &get_set_tok, const token &dot_tok)
virtual bool is_black_hole() const
symbol_record symbol() const
tree_identifier(symbol_record &sym, const token &tok)
comment_list leading_comments() const
tree_identifier(symbol_scope &scope, const token &tok)
~tree_identifier()=default
bool is_identifier() const
comment_list trailing_comments() const
token get_set_token() const
void static_workspace_error()
token identifier_token() const
void accept(tree_walker &tw)
octave_value evaluate(tree_evaluator &tw, int nargout=1)
virtual void visit_identifier(tree_identifier &)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void error(const char *fmt,...)