ygTokenStream derived from none | Example | Source | Header |
Comments |
constructor ygTokenStream
destructor ~ygTokenStream
method pushback
method next
method readNextToken
1Find the next non-whitespace character
2If it's a brace, just return that
3If it's an open paren, return everything up to the close paren
3.0.14Don't count any parentheses inside quoted strings
Catch mismatched parentheses
5For anything else, return up to the next paren, brace, or space
method nextChar
method pushbackChar
method getNextLine
0.1An initial # indicates it's a line & file note from cpp
0.1.1lineNumber_ 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