23 #if ! defined (octave_token_h) 24 #define octave_token_h 1 26 #include "octave-config.h" 68 token (
int tv,
int l = -1,
int c = -1);
70 token (
int tv,
const char *
s,
int l = -1,
int c = -1);
73 int l = -1,
int c = -1);
74 token (
int tv, end_tok_type
t,
int l = -1,
int c = -1);
76 int l = -1,
int c = -1);
78 int l = -1,
int c = -1);
97 int line (
void)
const {
return m_line_num; }
98 int column (
void)
const {
return m_column_num; }
102 return m_type_tag == keyword_token || m_type_tag == ettype_token;
107 return m_type_tag == sym_rec_token;
112 double number (
void)
const;
113 token_type ttype (
void)
const;
114 end_tok_type ettype (
void)
const;
176 : m_method_nm (method_nm), m_class_nm (class_nm)
198 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) 200 OCTAVE_DEPRECATED (4.4,
"use 'octave::token' instead")
201 typedef
octave::token token;
void mark_trailing_space(void)
superclass_info(const std::string &method_nm, const std::string &class_nm)
tok_info(const std::string &str)
for fields that display a single number
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
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 const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
void mark_may_be_command(void)
tok_info(end_tok_type et)
bool is_keyword(void) const
bool is_symbol(void) const
bool space_follows_token(void) const
bool is_keyword(const std::string &s)
tok_info(const std::string &method_nm, const std::string &class_nm)
bool may_be_command(void) const
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
superclass_info * m_superclass_info
bool token_value_is(int tv) const
tok_info(const symbol_record &sr)
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