BIE |
BIE::AsciiLexer Class ReferenceA simple ascii lexer used by the RecordInputStream_Ascii class. More...
Detailed DescriptionA simple ascii lexer used by the RecordInputStream_Ascii class.The bulk of the class is implemented by code automatically produced by FLEX. An AsciiLexer object can be created by passing the name of a file, or an open stream. To advance to the next token in the stream, use the nextToken() method -- this returns a code describing the type of token discover. To obtain the text of the token, call the tokenText() method. The text of the token is NULL (0) until nextToken is called. The flexer's tokens are as follows: newline, string literals (including the escaped characters \n, \t, \\, and \", in their usual interpretion) integer literals, floating point literals (including INF, NaN), keywords INT, BOOL, REAL, STRING (all case insensitive), and several single character symbols. See the symbol enumeration for a full list. This class inherits from two different classes - BaseObject (persistence) and yyFlexLexer (Flex). I didn't see any simple way around this with the tools we currently have.
Constructor & Destructor Documentation
Creates a new lexer object by opening the specified file. FileException is thrown if the file does not exist.
Creates a new lexer object which reads from the specified input stream.
Member Function Documentation
Gets the nextToken from the input file. The code returned by this routine is one of the codes in the enumeration defined below.
Returns the text of the token. The memory belongs to FLEX, and should not be interfered with!
The documentation for this class was generated from the following file:
Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU. Documentation generated at Fri Mar 26 00:35:12 2010 by
| |||||||||||||||||||||||||||||||||||||||||||||||||||