TokenStream Class Reference

Inheritance diagram for TokenStream:

Inheritance graph
[legend]
Collaboration diagram for TokenStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TokenStream (char *line)
char * current ()
void advance ()
bool eos ()
bool is_hat ()
bool is_step ()
bool is_next ()
bool is_end ()
bool is_cont ()
bool is_stack ()
bool is_abort ()
bool is_genesis ()
bool is_top ()
bool is_show ()
bool is_break ()
bool is_events ()
bool is_status ()
bool is_help ()
bool is_quit ()
bool is_plus ()
bool is_minus ()
bool is_smi (oop *addr)
bool is_table_entry (oop *addr)
bool is_object_search (oop *addr)
bool is_name (oop *addr)
bool is_symbol (oop *addr)
bool is_unary ()
bool is_binary ()
bool is_keyword ()

Private Member Functions

void tokenize (char *str)
bool match (char *str)

Private Attributes

GrowableArray< char * > * tokens
int pos

Detailed Description

Definition at line 98 of file evaluator.cpp.


Constructor & Destructor Documentation

TokenStream::TokenStream ( char *  line  )  [inline]

Definition at line 105 of file evaluator.cpp.

References pos, tokenize(), and tokens.

Here is the call graph for this function:


Member Function Documentation

void TokenStream::advance (  )  [inline]

Definition at line 111 of file evaluator.cpp.

References pos.

Referenced by evaluator::change_debug_flag(), evaluator::eval_message(), evaluator::get_oop(), evaluator::process_line(), evaluator::show_command(), and evaluator::top_command().

char* TokenStream::current (  )  [inline]

Definition at line 110 of file evaluator.cpp.

References GrowableArray< E >::at(), pos, and tokens.

Referenced by evaluator::change_debug_flag(), evaluator::eval_message(), evaluator::get_oop(), is_keyword(), is_name(), is_object_search(), is_smi(), is_symbol(), is_table_entry(), is_unary(), and match().

Here is the call graph for this function:

bool TokenStream::eos (  )  [inline]

Definition at line 112 of file evaluator.cpp.

References GenericGrowableArray::length(), pos, and tokens.

Referenced by evaluator::change_debug_flag(), evaluator::eval_message(), evaluator::process_line(), evaluator::show_command(), and evaluator::top_command().

Here is the call graph for this function:

bool TokenStream::is_abort (  )  [inline]

Definition at line 121 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_binary (  ) 

Definition at line 221 of file evaluator.cpp.

References is_keyword(), and is_unary().

Referenced by evaluator::eval_message().

Here is the call graph for this function:

bool TokenStream::is_break (  )  [inline]

Definition at line 125 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_cont (  )  [inline]

Definition at line 119 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_end (  )  [inline]

Definition at line 118 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_events (  )  [inline]

Definition at line 126 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_genesis (  )  [inline]

Definition at line 122 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_hat (  )  [inline]

Definition at line 115 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_help (  )  [inline]

Definition at line 128 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_keyword (  ) 

Definition at line 223 of file evaluator.cpp.

References current().

Referenced by evaluator::eval_message(), and is_binary().

Here is the call graph for this function:

bool TokenStream::is_minus (  )  [inline]

Definition at line 131 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_name ( oop addr  ) 

Definition at line 195 of file evaluator.cpp.

References current(), and Universe::find_global().

Referenced by evaluator::get_oop().

Here is the call graph for this function:

bool TokenStream::is_next (  )  [inline]

Definition at line 117 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_object_search ( oop addr  ) 

Definition at line 182 of file evaluator.cpp.

References current(), and Universe::object_start().

Referenced by evaluator::get_oop().

Here is the call graph for this function:

bool TokenStream::is_plus (  )  [inline]

Definition at line 130 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_quit (  )  [inline]

Definition at line 129 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_show (  )  [inline]

Definition at line 124 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_smi ( oop addr  ) 

Definition at line 156 of file evaluator.cpp.

References as_smiOop(), and current().

Referenced by evaluator::get_oop(), evaluator::show_command(), and evaluator::top_command().

Here is the call graph for this function:

bool TokenStream::is_stack (  )  [inline]

Definition at line 120 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_status (  )  [inline]

Definition at line 127 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_step (  )  [inline]

Definition at line 116 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_symbol ( oop addr  ) 

Definition at line 205 of file evaluator.cpp.

References current(), and oopFactory::new_symbol().

Referenced by evaluator::get_oop().

Here is the call graph for this function:

bool TokenStream::is_table_entry ( oop addr  ) 

Definition at line 167 of file evaluator.cpp.

References objectIDTable::at(), current(), objectIDTable::is_index_ok(), outputStream::print_cr(), and std.

Referenced by evaluator::get_oop().

Here is the call graph for this function:

bool TokenStream::is_top (  )  [inline]

Definition at line 123 of file evaluator.cpp.

References match().

Referenced by evaluator::process_line().

Here is the call graph for this function:

bool TokenStream::is_unary (  ) 

Definition at line 215 of file evaluator.cpp.

References current().

Referenced by evaluator::eval_message(), and is_binary().

Here is the call graph for this function:

bool TokenStream::match ( char *  str  )  [inline, private]

Definition at line 103 of file evaluator.cpp.

References current().

Referenced by is_abort(), is_break(), is_cont(), is_end(), is_events(), is_genesis(), is_hat(), is_help(), is_minus(), is_next(), is_plus(), is_quit(), is_show(), is_stack(), is_status(), is_step(), and is_top().

Here is the call graph for this function:

void TokenStream::tokenize ( char *  str  )  [private]

Definition at line 147 of file evaluator.cpp.

References GrowableArray< E >::push(), seps, and tokens.

Referenced by TokenStream().

Here is the call graph for this function:


Member Data Documentation

int TokenStream::pos [private]

Definition at line 101 of file evaluator.cpp.

Referenced by advance(), current(), eos(), and TokenStream().

GrowableArray<char*>* TokenStream::tokens [private]

Definition at line 100 of file evaluator.cpp.

Referenced by current(), eos(), tokenize(), and TokenStream().


The documentation for this class was generated from the following file:
Generated on Mon Oct 9 14:19:02 2006 for Strongtalk VM by  doxygen 1.4.7