26#if ! defined (octave_pt_cmd_h)
27#define octave_pt_cmd_h 1
29#include "octave-config.h"
55 virtual
void update_end_pos (const
filepos&)
57 error (
"unexpected call to tree_command::update_end_pos - please report this bug");
68 : m_eof (eof), m_tok (tok), m_orig_cmd (cmd)
83 error (
"unexpected call to tree_no_op_command::update_end_pos - please report this bug");
105 return (m_orig_cmd ==
"endfunction" || m_orig_cmd ==
"endscript");
119 std::string m_orig_cmd;
160OCTAVE_END_NAMESPACE(octave)
virtual octave::filepos beg_pos() const
virtual octave::filepos end_pos() const
octave_function * function_value(bool silent=false) const
comment_list leading_comments() const
comment_list trailing_comments() const
tree_function_def(octave_function *f)
void accept(tree_walker &tw)
~tree_function_def()=default
void update_end_pos(const filepos &pos)
comment_list trailing_comments() const
std::string original_command()
comment_list leading_comments() const
void attach_trailing_comments(const comment_list &lst)
bool is_end_of_fcn_or_script() const
void accept(tree_walker &tw)
tree_no_op_command(const std::string &cmd, bool eof, const token &tok)
~tree_no_op_command()=default
bool is_end_of_file() const
virtual void visit_no_op_command(tree_no_op_command &)
virtual void visit_function_def(tree_function_def &)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void error(const char *fmt,...)
F77_RET_T const F77_DBLE const F77_DBLE * f