ygTokenStream derived from none Example Source Header

Author: Dave Pape
11/01/01
Revision: 06/28/05 Alex Hill - added process id to temporary file name

    Comments

constructor ygTokenStream

destructor ~ygTokenStream

method pushback

method next

method readNextToken

1
 Find the next non-whitespace character 

2
 If it's a brace, just return that 

3
 If it's an open paren, return everything up to the close paren 

3.0.1
 Don't count any parentheses inside quoted strings 

4
 Catch mismatched parentheses 

5
 For anything else, return up to the next paren, brace, or space 

method nextChar

method pushbackChar

method getNextLine

0.1
 An initial # indicates it's a line & file note from cpp 

0.1.1
 lineNumber_ will be incremented when we read the actual line 

0.1.1 ignore whitespace at the beginning of the line
0.1.2 trap any macro directives
0.1.2.0.0.1 store C++ style comments
0.1.2.0.0.2 truncate line after begin C style comment
0.1.2.0.1 truncate line up to C style comment end

method nextComment