|
Public Member Functions |
| | StreamTokenizer (IN(RCharReader) reader) |
| virtual | ~StreamTokenizer () |
| virtual void | commentChar (int ch) |
| virtual void | eolIsSignificant (bool flag) |
| virtual int | lineno () |
| virtual void | lowerCaseMode (bool fl) |
| virtual int | nextToken () |
| virtual void | ordinaryChar (int ch) |
| virtual void | ordinaryChars (int low, int hi) |
| virtual void | parseNumbers () |
| virtual void | pushBack () |
| virtual void | quoteChar (int ch) |
| virtual void | resetSyntax () |
| virtual RString | toString () |
| | returns current token for logging
|
| RString | toCode () |
| | returns current token as original code
|
| virtual void | whitespaceChars (int low, int hi) |
| virtual void | wordChars (int low, int hi) |
| virtual RString | getDeviceName () |
| virtual void | skipLine () |
| | reading the rest of current line, whithout parsing it.
|
| bool | wantWhiteSpace (bool b) |
| bool | wantNewline (bool b) |
| bool | wantComments (bool b) |
| | want parsed C/C++ comments return as token or discarge has no effect if parseCCComments() is false
|
| void | parseCCComments (bool b) |
| | should C/C++ comments parse
|
| bool | parseCCComments () |
| void | readCxxIdentifier (bool b) |
| bool | readCxxIdentifier () |
| void | readOperator (bool b) |
| bool | readOperator () |
| bool | readNumberAsString () |
| void | readNumberAsString (bool b) |
| int | read () |
| | API: Extended.
|
| void | unread (int c) |
| void | unread (IN(RString) str) |
| void | pushBack (int typ, IN(RString) stringval) |
| bool | eof () |
| RString | getStreamPos (bool withXPos=true) |
| | For Debugging output returns the current positition of the stream.
|
| CharStreamPos | getCharStreamPos () |
| void | getCharStreamPos (OUT(int) charPos, OUT(int) linePos, OUT(int) columnPos) |
| RString | lastReaded () |
| acdk::lang::dmi::RDmiObject | getCurrentToken () |
| | return the current token as ScriptVar In case of number values return as smallest possible type
|
| acdk::lang::dmi::ScriptVar | getCurrentSvToken () |
Static Public Member Functions |
| RString | toCode (int tk, IN(acdk::lang::dmi::ScriptVar) sv) |
| int | mapCEscapedChar (int nc) |
| | maps a escaped character to the corresponding decoded character following C enconding '
' becomes new line '' a tab space '' x
|
Public Attributes |
| RNumber | nval |
| RString | sval |
| uc2char | cval |
| int | ttype |
Static Public Attributes |
| const int | TT_EOF |
| const int | TT_EOL |
| const int | TT_NUMBER |
| const int | TT_WORD |
| const int | TT_STRING |
| | a quoted String, following the c/java notation
|
| const int | TT_QCHAR |
| | a quoted character in the c/java notation
|
| const int | TT_CCOMMENT |
| | a comment, following the C-Notation.
|
| const int | TT_CXXCOMMENT |
| | a comment, beginning with 2 slashes until the end of line.
|
| const int | TT_WS |
| | a sequense of whitespaces.
|
| const int | TT_OPERATOR |
Protected Member Functions |
| RString | _readCxxComment () |
| RString | _readCComment () |
| RString | _readCString () |
| bool | _readCChar () |
| | read a quoted character
|
| RString | _readUnescapedCString () |
| RString | _readWhiteSpaces () |
| bool | _isWhiteSpace (int c) |
| bool | _readNumber () |
| bool | _readIdentifier () |
Protected Attributes |
| RPushbackCharReader | _in |
| RLineNumberCharReader | _lineReader |
| bool | _wantWS |
| | Tokenizer should return white spaces.
|
| bool | _wantComments |
| | return parsed comments (C/C++-Comments) or just throw it away sval contains the comment text without the comment chars
|
| bool | _wantNL |
| | if true, a new line character will return seperated from WS, otherwise, it will return embedded in whitespaces.
|
| bool | _readCxxIdentifier |
| | if true read acdk::lang::String as identifier
|
| bool | _parseOperator |
| | parse standard operator and return TT_OPERATOR if not set, just return the standard character
|
| bool | _eof |
| | true if unlying stream is return -1
|
| bool | _readNumberAsString |
| | read numbers as strings, not as number
|
| bool | _parseCCComments |
| | parse C/C++ comments
|