This class is used to implement an avro spec parser using a flex/bison compiler. More...
#include <Compiler.hh>
| Public Member Functions | |
| CompilerContext (std::istream &is) | |
| void | setText (const char *text) | 
| Called by the lexer whenever it encounters text that is not a symbol it recognizes (names, fieldnames, values to be converted to integers, etc). | |
| void | addNamedType () | 
| void | startType () | 
| void | stopType () | 
| void | addType (avro::Type type) | 
| void | setSizeAttribute () | 
| void | setNameAttribute () | 
| void | setSymbolsAttribute () | 
| void | setFieldsAttribute () | 
| void | setItemsAttribute () | 
| void | setValuesAttribute () | 
| void | setTypesAttribute () | 
| void | textContainsFieldName () | 
| const FlexLexer & | lexer () const | 
| FlexLexer & | lexer () | 
| const NodePtr & | getRoot () const | 
This class is used to implement an avro spec parser using a flex/bison compiler.
In order for the lexer to be reentrant, this class provides a lexer object for each parse. The bison parser also uses this class to build up an avro parse tree as the avro spec is parsed.
| void avro::CompilerContext::setText | ( | const char * | text | ) |  [inline] | 
Called by the lexer whenever it encounters text that is not a symbol it recognizes (names, fieldnames, values to be converted to integers, etc).
 1.7.1
 1.7.1