Navigation

Operators and Keywords

Function List:

C++ API

token Class Reference

#include <token.h>

Collaboration diagram for token:

List of all members.


Public Types

enum  token_type {
  generic_token, string_token, double_token, ettype_token,
  pttype_token, sym_rec_token, scls_rec_token, meta_rec_token
}
enum  end_tok_type {
  simple_end, classdef_end, events_end, for_end,
  function_end, if_end, methods_end, properties_end,
  switch_end, while_end, try_catch_end, unwind_protect_end
}
enum  plot_tok_type { replot = 1, two_dee = 2, three_dee = 3 }

Public Member Functions

 token (int l=-1, int c=-1)
 token (const std::string &s, int l=-1, int c=-1)
 token (double d, const std::string &s=std::string(), int l=-1, int c=-1)
 token (end_tok_type t, int l=-1, int c=-1)
 token (plot_tok_type t, int l=-1, int c=-1)
 token (symbol_table::symbol_record *s, int l=-1, int c=-1)
 token (symbol_table::symbol_record *cls, symbol_table::symbol_record *pkg, int l=-1, int c=-1)
 token (symbol_table::symbol_record *mth, symbol_table::symbol_record *cls, symbol_table::symbol_record *pkg, int l=-1, int c=-1)
 ~token (void)
int line (void)
int column (void)
std::string text (void)
double number (void)
end_tok_type ettype (void)
plot_tok_type pttype (void)
symbol_table::symbol_recordsym_rec (void)
symbol_table::symbol_recordmethod_rec (void)
symbol_table::symbol_recordclass_rec (void)
symbol_table::symbol_recordpackage_rec (void)
symbol_table::symbol_recordmeta_class_rec (void)
symbol_table::symbol_recordmeta_package_rec (void)
std::string text_rep (void)

Member Enumeration Documentation

Enumerator:
simple_end 
classdef_end 
events_end 
for_end 
function_end 
if_end 
methods_end 
properties_end 
switch_end 
while_end 
try_catch_end 
unwind_protect_end 

Enumerator:
replot 
two_dee 
three_dee 

Enumerator:
generic_token 
string_token 
double_token 
ettype_token 
pttype_token 
sym_rec_token 
scls_rec_token 
meta_rec_token 


Constructor & Destructor Documentation

token::token ( int  l = -1,
int  c = -1 
)

token::token ( const std::string s,
int  l = -1,
int  c = -1 
)

token::token ( double  d,
const std::string s = std::string (),
int  l = -1,
int  c = -1 
)

token::token ( end_tok_type  t,
int  l = -1,
int  c = -1 
)

token::token ( plot_tok_type  t,
int  l = -1,
int  c = -1 
)

token::token ( symbol_table::symbol_record s,
int  l = -1,
int  c = -1 
)

token::token ( symbol_table::symbol_record cls,
symbol_table::symbol_record pkg,
int  l = -1,
int  c = -1 
)

token::token ( symbol_table::symbol_record mth,
symbol_table::symbol_record cls,
symbol_table::symbol_record pkg,
int  l = -1,
int  c = -1 
)

token::~token ( void   ) 


Member Function Documentation

symbol_table::symbol_record * token::class_rec ( void   ) 

int token::column ( void   )  [inline]

token::end_tok_type token::ettype ( void   ) 

int token::line ( void   )  [inline]

symbol_table::symbol_record * token::meta_class_rec ( void   ) 

symbol_table::symbol_record * token::meta_package_rec ( void   ) 

symbol_table::symbol_record * token::method_rec ( void   ) 

double token::number ( void   ) 

symbol_table::symbol_record * token::package_rec ( void   ) 

token::plot_tok_type token::pttype ( void   ) 

symbol_table::symbol_record * token::sym_rec ( void   ) 

std::string token::text ( void   ) 

std::string token::text_rep ( void   ) 


Member Data Documentation

struct { ... } token::mc

struct { ... } token::sc


The documentation for this class was generated from the following files: