avro::CompilerContext Class Reference

This class is used to implement an avro spec parser using a flex/bison compiler. More...

#include <Compiler.hh>

List of all members.

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

Detailed Description

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.


Member Function Documentation

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).


The documentation for this class was generated from the following file:
Generated on Thu Sep 2 18:40:54 2010 for Avro C++ by  doxygen 1.6.3