43 #include "as_scriptnode.h" 44 #include "as_scriptcode.h" 45 #include "as_builder.h" 46 #include "as_tokenizer.h" 55 int ParseFunctionDefinition(
asCScriptCode *script,
bool expectListPattern);
60 #ifndef AS_NO_COMPILER 74 void GetToken(
sToken *token);
75 void RewindTo(
const sToken *token);
76 void SetPos(
size_t pos);
86 asCScriptNode *ParseType(
bool allowConst,
bool allowVariableType =
false,
bool allowAuto =
false);
90 asCScriptNode *ParseDataType(
bool allowVariableType =
false,
bool allowAuto =
false);
92 bool ParseTemplTypeList(
asCScriptNode *node,
bool required =
true);
97 bool IsRealType(
int tokenType);
98 bool IsDataType(
const sToken &token);
99 bool IdentifierIs(
const sToken &t,
const char *str);
101 #ifndef AS_NO_COMPILER 120 asCScriptNode *ParseDeclaration(
bool isClassProp =
false,
bool isGlobalVar =
false);
131 asCScriptNode *ParseVirtualPropertyDecl(
bool isMethod,
bool isInterface);
135 bool IsVirtualPropertyDecl();
136 bool IsFuncDecl(
bool isMethod);
138 bool IsFunctionCall();
159 bool IsType(
sToken &nextToken);
160 bool IsConstant(
int tokenType);
161 bool IsOperator(
int tokenType);
162 bool IsPreOperator(
int tokenType);
163 bool IsPostOperator(
int tokenType);
164 bool IsAssignOperator(
int tokenType);
166 bool CheckTemplateType(
const sToken &t);
172 asCString ExpectedToken(
const char *token);
173 asCString ExpectedTokens(
const char *token1,
const char *token2);
174 asCString ExpectedOneOf(
int *tokens,
int count);
175 asCString ExpectedOneOf(
const char **tokens,
int count);
178 bool errorWhileParsing;
180 bool checkValidTypes;
181 bool isParsingAppInterface;
Definition: as_builder.h:140
Definition: as_scriptcode.h:48
Definition: as_scriptnode.h:96
Definition: as_parser.h:50
Definition: as_scriptengine.h:64
Definition: as_scriptnode.h:104
Definition: as_string.h:41