Public Member Functions |
bool | parse (const String &fileName) |
String | fileName () const |
const std::vector< String > & | getIncludes () const |
const std::vector< Constant > & | getConstants () const |
const std::vector< Choice > & | getChoices () const |
const std::vector< Sequence > & | getSequences () const |
const std::vector< Record > & | getRecords () const |
const std::vector< Class > & | getClasses () const |
const std::vector< Method > & | getProcedures () const |
const std::vector< String > & | getTypes () const |
std::vector< Pragma > | getPragmas (const String &binding) const |
Sequence | findSequence (const String &name) const |
Record | findRecord (const String &name) const |
const Class * | findClass (const String &name) const |
bool | isChoice (const String &type) const |
bool | isSequence (const String &type) const |
bool | isRecord (const String &type) const |
bool | isClass (const String &type) const |
Type | typeOf (const String &type) const |
bool | fromInclude (const String &type) const |
Protected Member Functions |
String | defineSymbol (const String &name) |
Symbol * | qualifyHelper (const String &name) |
String | qualifySymbol (const String &name) |
bool | enterNamespace (const String &name) |
void | leaveNamespace () |
bool | usingNamespace (const String &name) |
template<class... Args> |
void | print_error (const char *format, const Args &...args) |
template<class... Args> |
void | print_warning (const char *format, const Args &...args) |
void | preprocess (const String &filename, bool includeImpl=false) |
void | preprocessContents (const String &filename) |
bool | haveIncluded (const String &filename) const |
bool | insideInclude () const |
void | addConstantTodo (const Constant &cdef) |
void | addChoiceTodo (const Choice &cdef) |
void | addRecordTodo (const Record &rdef) |
void | addSequenceTodo (const Sequence &sdef) |
void | addClassTodo (const Class &cdef) |
void | addProcedureTodo (const Method &pdef) |
void | addPrototype (const String &type, TypeDeclaration typeDecl) |
void | addType (const String &type, TypeDeclaration typeDecl) |
GTokenType | parseTypeName (String &s) |
GTokenType | parseStringOrConst (String &s) |
GTokenType | parseConstant (bool isident=false) |
GTokenType | parseNamespace () |
GTokenType | parseChoice () |
GTokenType | parseChoiceValue (ChoiceValue &comp, int &value, int &sequentialValue) |
GTokenType | parseRecord () |
GTokenType | parseRecordField (Param &comp, const IString &group) |
GTokenType | parseStream (Stream &stream, Stream::Type) |
GTokenType | parseSequence () |
GTokenType | parseParamHints (Param &def) |
GTokenType | parseClass () |
GTokenType | parseMethod (Method &def) |
GTokenType | parseInfoOptional (Map< String, IString > &infos) |
Static Protected Member Functions |
static void | scannerMsgHandler (GScanner *scanner, gchar *message, gboolean is_error) |
Protected Attributes |
class Options & | options |
GScanner * | scanner |
std::vector< char > | scannerInputData |
std::vector< LineInfo > | scannerLineInfo |
Namespace | rootNamespace |
Namespace * | currentNamespace |
std::vector< String > | includedNames |
std::vector< String > | types |
std::map< String, int > | typeMap |
std::vector< String > | includes |
std::vector< Pragma > | pragmas |
std::vector< Constant > | constants |
std::vector< Choice > | choices |
std::vector< Sequence > | sequences |
std::vector< Record > | records |
std::vector< Class > | classes |
std::vector< Method > | procedures |