ScummVM API documentation
asCParser Class Reference

Public Member Functions

 asCParser (asCBuilder *builder)
 
int ParseFunctionDefinition (asCScriptCode *script, bool expectListPattern)
 
int ParsePropertyDeclaration (asCScriptCode *script)
 
int ParseDataType (asCScriptCode *script, bool isReturnType)
 
int ParseTemplateDecl (asCScriptCode *script)
 
int ParseScript (asCScriptCode *script)
 
int ParseStatementBlock (asCScriptCode *script, asCScriptNode *block)
 
int ParseVarInit (asCScriptCode *script, asCScriptNode *init)
 
int ParseExpression (asCScriptCode *script)
 
asCScriptNodeGetScriptNode ()
 

Protected Member Functions

void Reset ()
 
void GetToken (sToken *token)
 
void RewindTo (const sToken *token)
 
void SetPos (size_t pos)
 
void Error (const asCString &text, sToken *token)
 
void Warning (const asCString &text, sToken *token)
 
void Info (const asCString &text, sToken *token)
 
asCScriptNodeCreateNode (eScriptNode type)
 
asCScriptNodeParseFunctionDefinition ()
 
asCScriptNodeParseParameterList ()
 
asCScriptNodeSuperficiallyParseExpression ()
 
asCScriptNodeParseType (bool allowConst, bool allowVariableType=false, bool allowAuto=false)
 
asCScriptNodeParseTypeMod (bool isParam)
 
void ParseOptionalScope (asCScriptNode *node)
 
asCScriptNodeParseRealType ()
 
asCScriptNodeParseDataType (bool allowVariableType=false, bool allowAuto=false)
 
asCScriptNodeParseIdentifier ()
 
bool ParseTemplTypeList (asCScriptNode *node, bool required=true)
 
void ParseMethodAttributes (asCScriptNode *funcNode)
 
asCScriptNodeParseListPattern ()
 
bool IsRealType (int tokenType)
 
bool IsDataType (const sToken &token)
 
bool IdentifierIs (const sToken &t, const char *str)
 
asCScriptNodeSuperficiallyParseStatementBlock ()
 
asCScriptNodeSuperficiallyParseVarInit ()
 
asCScriptNodeParseStatementBlock ()
 
asCScriptNodeParseStatement ()
 
asCScriptNodeParseExpressionStatement ()
 
asCScriptNodeParseSwitch ()
 
asCScriptNodeParseCase ()
 
asCScriptNodeParseIf ()
 
asCScriptNodeParseFor ()
 
asCScriptNodeParseWhile ()
 
asCScriptNodeParseDoWhile ()
 
asCScriptNodeParseReturn ()
 
asCScriptNodeParseBreak ()
 
asCScriptNodeParseContinue ()
 
asCScriptNodeParseTryCatch ()
 
asCScriptNodeParseDeclaration (bool isClassProp=false, bool isGlobalVar=false)
 
asCScriptNodeParseImport ()
 
asCScriptNodeParseScript (bool inBlock)
 
asCScriptNodeParseNamespace ()
 
asCScriptNodeParseFunction (bool isMethod=false)
 
asCScriptNodeParseFuncDef ()
 
asCScriptNodeParseClass ()
 
asCScriptNodeParseMixin ()
 
asCScriptNodeParseInitList ()
 
asCScriptNodeParseInterface ()
 
asCScriptNodeParseInterfaceMethod ()
 
asCScriptNodeParseVirtualPropertyDecl (bool isMethod, bool isInterface)
 
asCScriptNodeParseEnumeration ()
 
asCScriptNodeParseTypedef ()
 
bool IsVarDecl ()
 
bool IsVirtualPropertyDecl ()
 
bool IsFuncDecl (bool isMethod)
 
bool IsLambda ()
 
bool IsFunctionCall ()
 
asCScriptNodeParseAssignment ()
 
asCScriptNodeParseAssignOperator ()
 
asCScriptNodeParseCondition ()
 
asCScriptNodeParseExpression ()
 
asCScriptNodeParseExprTerm ()
 
asCScriptNodeParseExprOperator ()
 
asCScriptNodeParseExprPreOp ()
 
asCScriptNodeParseExprPostOp ()
 
asCScriptNodeParseExprValue ()
 
asCScriptNodeParseArgList (bool withParenthesis=true)
 
asCScriptNodeParseFunctionCall ()
 
asCScriptNodeParseVariableAccess ()
 
asCScriptNodeParseConstructCall ()
 
asCScriptNodeParseCast ()
 
asCScriptNodeParseConstant ()
 
asCScriptNodeParseStringConstant ()
 
asCScriptNodeParseLambda ()
 
bool IsType (sToken &nextToken)
 
bool IsConstant (int tokenType)
 
bool IsOperator (int tokenType)
 
bool IsPreOperator (int tokenType)
 
bool IsPostOperator (int tokenType)
 
bool IsAssignOperator (int tokenType)
 
bool CheckTemplateType (const sToken &t)
 
asCScriptNodeParseToken (int token)
 
asCScriptNodeParseOneOf (int *tokens, int num)
 
asCString ExpectedToken (const char *token)
 
asCString ExpectedTokens (const char *token1, const char *token2)
 
asCString ExpectedOneOf (int *tokens, int count)
 
asCString ExpectedOneOf (const char **tokens, int count)
 
asCString InsteadFound (sToken &t)
 

Protected Attributes

bool errorWhileParsing
 
bool isSyntaxError
 
bool checkValidTypes
 
bool isParsingAppInterface
 
asCScriptEngineengine
 
asCBuilderbuilder
 
asCScriptCodescript
 
asCScriptNodescriptNode
 
asCString tempString
 
sToken lastToken
 
size_t sourcePos
 

The documentation for this class was generated from the following file: