23 #if ! defined (octave_token_h)
24 #define octave_token_h 1
26 #include "octave-config.h"
66 token (
int tv,
int l = -1,
int c = -1);
68 token (
int tv,
const char *
s,
int l = -1,
int c = -1);
71 int l = -1,
int c = -1);
72 token (
int tv, end_tok_type
t,
int l = -1,
int c = -1);
75 int l = -1,
int c = -1);
88 int line (
void)
const {
return line_num; }
89 int column (
void)
const {
return column_num; }
93 return type_tag == keyword_token || type_tag == ettype_token;
98 return type_tag == sym_rec_token;
103 double number (
void)
const;
104 token_type ttype (
void)
const;
105 end_tok_type ettype (
void)
const;
For example cd octave end example noindent changes the current working directory to an error message is printed and the working directory is not changed sc
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)
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
bool is_symbol(void) const
bool is_keyword(void) const
bool is_keyword(const std::string &s)
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
OCTAVE_EXPORT octave_value_list the first data row corresponds to an index of zero The a spreadsheet style form such as the file is read until end of file is reached The such as text
symbol_table::symbol_record * sr
void mark_trailing_space(void)
int token_value(void) const
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string