23 #if !defined (octave_token_h)
24 #define octave_token_h 1
64 token (
int tv,
int l = -1,
int c = -1);
66 token (
int tv,
const char *s,
int l = -1,
int c = -1);
67 token (
int tv,
const std::string& s,
int l = -1,
int c = -1);
68 token (
int tv,
double d,
const std::string& s = std::string (),
69 int l = -1,
int c = -1);
70 token (
int tv, end_tok_type t,
int l = -1,
int c = -1);
72 token (
int tv,
const std::string& mth,
const std::string& cls,
73 int l = -1,
int c = -1);
86 int line (
void)
const {
return line_num; }
87 int column (
void)
const {
return column_num; }
91 return type_tag == keyword_token || type_tag == ettype_token;
96 return type_tag == sym_rec_token;
99 std::string
text (
void)
const;
100 std::string symbol_name (
void)
const;
101 double number (
void)
const;
102 token_type ttype (
void)
const;
103 end_tok_type ettype (
void)
const;
106 std::string superclass_method_name (
void);
107 std::string superclass_class_name (
void);
109 std::string text_rep (
void);
bool token_value_is(int tv) const
bool space_follows_token(void) const
bool may_be_command(void) const
void mark_may_be_command(void)
bool is_keyword(const std::string &s)
F77_RET_T const double const double double * d
bool is_symbol(void) const
bool is_keyword(void) const
symbol_table::symbol_record * sr
void mark_trailing_space(void)
int token_value(void) const
tree_walker & operator=(const tree_walker &)