Lines Matching full:context
61 TParseContext* context = yyextra;
97 "float" { context->lexAfterType = true; return(FLOAT_TYPE); }
98 "int" { context->lexAfterType = true; return(INT_TYPE); }
99 "void" { context->lexAfterType = true; return(VOID_TYPE); }
100 "bool" { context->lexAfterType = true; return(BOOL_TYPE); }
107 "mat2" { context->lexAfterType = true; return(MATRIX2); }
108 "mat3" { context->lexAfterType = true; return(MATRIX3); }
109 "mat4" { context->lexAfterType = true; return(MATRIX4); }
111 "vec2" { context->lexAfterType = true; return (VEC2); }
112 "vec3" { context->lexAfterType = true; return (VEC3); }
113 "vec4" { context->lexAfterType = true; return (VEC4); }
114 "ivec2" { context->lexAfterType = true; return (IVEC2); }
115 "ivec3" { context->lexAfterType = true; return (IVEC3); }
116 "ivec4" { context->lexAfterType = true; return (IVEC4); }
117 "bvec2" { context->lexAfterType = true; return (BVEC2); }
118 "bvec3" { context->lexAfterType = true; return (BVEC3); }
119 "bvec4" { context->lexAfterType = true; return (BVEC4); }
121 "sampler2D" { context->lexAfterType = true; return SAMPLER2D; }
122 "samplerCube" { context->lexAfterType = true; return SAMPLERCUBE; }
124 "struct" { context->lexAfterType = true; return(STRUCT); }
182 0{D}+ { context->error(yylineno, "Invalid Octal number.", yytext, "", ""); context->recover(); return 0;}
211 ";" { context->lexAfterType = false; return(SEMICOLON); }
212 ("{"|"<%") { context->lexAfterType = false; return(LEFT_BRACE); }
214 "," { if (context->inTypeParen) context->lexAfterType = false; return(COMMA); }
216 "=" { context->lexAfterType = false; return(EQUAL); }
217 "(" { context->lexAfterType = false; context->inTypeParen = true; return(LEFT_PAREN); }
218 ")" { context->inTypeParen = false; return(RIGHT_PAREN); }
244 <*><<EOF>> { context->AfterEOF = true; yyterminate(); }
245 <*>. { context->warning(yylineno, "Unknown char", yytext, ""); return 0; }
254 TParseContext* context = (TParseContext*) pp->pC; \
255 struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
261 context->infoSink.debug.message(EPrefixNone, msg);
267 context->warning(yylineno, msg, "", "");
273 context->error(yylineno, msg, "", "");
274 context->recover();
280 context->error(yylineno, msg, "", "");
281 context->recover();
347 context->contextPragma.optimize = true;
349 context->contextPragma.optimize = false;
371 context->contextPragma.debug = true;
373 context->contextPragma.debug = false;
422 context->HashErrMsg = context->HashErrMsg + " " + strSrc;
428 cpp->ErrMsg = context->HashErrMsg.c_str();
435 context->HashErrMsg = "";
467 for (iter = context->extensionBehavior.begin(); iter != context->extensionBehavior.end(); ++iter)
471 iter = context->extensionBehavior.find(TString(extName));
472 if (iter == context->extensionBehavior.end()) {
481 context->infoSink.info.message(EPrefixWarning, msg.c_str(), yylineno);
527 void yyerror(TParseContext* context, const char* reason) {
528 struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
530 if (context->AfterEOF) {
531 context->error(yylineno, reason, "unexpected EOF", "");
533 context->error(yylineno, reason, yytext, "");
535 context->recover();
538 int glslang_initialize(TParseContext* context) {
540 if (yylex_init_extra(context, &scanner))
543 context->scanner = scanner;
547 int glslang_finalize(TParseContext* context) {
548 yyscan_t scanner = context->scanner;
551 context->scanner = NULL;
556 TParseContext* context) {
557 yyrestart(NULL, context->scanner);
558 yyset_lineno(EncodeSourceLoc(0, 1), context->scanner);
559 context->AfterEOF = false;
562 cpp->pC = context;