Home
last modified time | relevance | path

Searched refs:parseContext (Results 1 – 18 of 18) sorted by relevance

/external/deqp-deps/glslang/glslang/MachineIndependent/
Dglslang.y115 #define parseContext (*pParseContext) macro
123 %lex-param {parseContext}
296 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
305 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
306 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
309 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
310 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
313 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
316 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
317 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
[all …]
DScan.cpp292 int yylex(YYSTYPE* glslangTokenDesc, glslang::TParseContext& parseContext) in yylex() argument
296 return parseContext.getScanContext()->tokenize(parseContext.getPpContext(), token); in yylex()
804 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenize()
835 parseContext.error(loc, "not supported", "::", ""); in tokenize()
860 parseContext.error(loc, "unexpected token", buf, ""); in tokenize()
901 if (parseContext.extensionTurnedOn(E_GL_EXT_nonuniform_qualifier)) in tokenizeIdentifier()
908 if ((parseContext.profile == EEsProfile && parseContext.version < 300) || in tokenizeIdentifier()
909 (parseContext.profile != EEsProfile && parseContext.version < 130)) in tokenizeIdentifier()
943 if (parseContext.profile == EEsProfile && parseContext.version >= 300) in tokenizeIdentifier()
949 if ((parseContext.profile == EEsProfile && parseContext.version < 310) || in tokenizeIdentifier()
[all …]
Dglslang_tab.cpp597 #define parseContext (*pParseContext) macro
4057 yychar = yylex (&yylval, parseContext); in yyparse()
4138 …(yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).sy… in yyparse()
4154 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse()
4155 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyv… in yyparse()
4163 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse()
4164 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyv… in yyparse()
4172 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyv… in yyparse()
4180 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse()
4181 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyv… in yyparse()
[all …]
DShaderLang.cpp241 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(symbolTable, intermediate, vers… in InitializeSymbolTable() local
246 TPpContext ppContext(*parseContext, "", includer); in InitializeSymbolTable()
247 TScanContext scanContext(*parseContext); in InitializeSymbolTable()
248 parseContext->setScanContext(&scanContext); in InitializeSymbolTable()
249 parseContext->setPpContext(&ppContext); in InitializeSymbolTable()
268 if (! parseContext->parseShaderStrings(ppContext, input) != 0) { in InitializeSymbolTable()
912 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, ver… in ProcessDeferred() local
915 TPpContext ppContext(*parseContext, names[numPre] ? names[numPre] : "", includer); in ProcessDeferred()
918 glslang::TScanContext scanContext(*parseContext); in ProcessDeferred()
920 parseContext->setScanContext(&scanContext); in ProcessDeferred()
[all …]
DScanContext.h54 parseContext(pc), in TScanContext()
80 TParseContextBase& parseContext; variable
/external/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/
DPpScanner.cpp139 if (ch == '#' && (ifdepth > 0 || parseContext.intermediate.getSource() == EShSourceHlsl)) { in lFloatConst()
144 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst()
150 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst()
218 parseContext.ppError(ppToken->loc, "bad character in float exponent", "", ""); in lFloatConst()
254 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
255 parseContext.doubleCheck(ppToken->loc, "double floating-point suffix"); in lFloatConst()
257parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
258 if (parseContext.intermediate.getSource() == EShSourceGlsl) { in lFloatConst()
268 } else if (parseContext.intermediate.getSource() == EShSourceHlsl) { in lFloatConst()
273 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
[all …]
DPp.cpp103 parseContext.ppError(ppToken->loc, "must be followed by macro name", "#define", ""); in CPPdefine()
108 parseContext.reservedPpErrorCheck(ppToken->loc, ppToken->name, "#define"); in CPPdefine()
124 parseContext.ppError(ppToken->loc, "bad argument", "#define", ""); in CPPdefine()
134 parseContext.ppError(ppToken->loc, "duplicate macro parameter", "#define", ""); in CPPdefine()
144 parseContext.ppError(ppToken->loc, "missing parenthesis", "#define", ""); in CPPdefine()
168parseContext.ppError(defineLoc, "Macro redefined; function-like versus object-like:", "#define", a… in CPPdefine()
170parseContext.ppError(defineLoc, "Macro redefined; different number of arguments:", "#define", atom… in CPPdefine()
173parseContext.ppError(defineLoc, "Macro redefined; different argument names:", "#define", atomStrin… in CPPdefine()
181 oldToken = existing->body.getToken(parseContext, &oldPpToken); in CPPdefine()
182 newToken = mac.body.getToken(parseContext, &newPpToken); in CPPdefine()
[all …]
DPpTokens.cpp200 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
209 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
221 parseContext.error(ppToken->loc, "token too long", "", ""); in getToken()
232 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken()
233parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, 0, "token pasting (##)"); in getToken()
DPpContext.h302 TParseContextBase& parseContext; variable
422 …virtual int scan(TPpToken *ppToken) override { return tokens->getToken(pp->parseContext, ppToken);… in scan()
461 … bool allowed = pp->parseContext.lineContinuationCheck(input->getSourceLoc(), pp->inComment); in getch()
564 prevScanner = pp->parseContext.getScanner(); in notifyActivated()
565 pp->parseContext.setScanner(&scanner); in notifyActivated()
571 pp->parseContext.setScanner(prevScanner); in notifyDeleted()
DPpContext.cpp88 …preamble(0), strings(0), previous_token('\n'), parseContext(pc), includer(inclr), inComment(false), in TPpContext()
/external/deqp-deps/glslang/hlsl/
DhlslGrammar.cpp70 parseContext.error(token.loc, "Expected", syntax, ""); in expected()
75 parseContext.error(token.loc, "Unimplemented", error, ""); in unimplemented()
196 parseContext.warn(token.loc, "unimplemented", "immediate sampler state", ""); in acceptSamplerState()
338 parseContext.pushNamespace(*namespaceToken.string); in acceptDeclaration()
351 parseContext.popNamespace(); in acceptDeclaration()
392 if (parseContext.symbolTable.atGlobalLevel()) in acceptDeclaration()
393 parseContext.getFullNamespaceName(fullName); in acceptDeclaration()
398parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
401 parseContext.renameShaderFunction(fullName); in acceptDeclaration()
417parseContext.error(idToken.loc, "function body can't be in a declarator list", "{", ""); in acceptDeclaration()
[all …]
DhlslScanContext.h76 HlslScanContext(TParseContextBase& parseContext, TPpContext& ppContext) in HlslScanContext() argument
77 : parseContext(parseContext), ppContext(ppContext) { } in HlslScanContext()
97 TParseContextBase& parseContext; variable
DhlslGrammar.h53 HlslGrammar(HlslScanContext& scanner, HlslParseContext& parseContext) in HlslGrammar() argument
54 … : HlslTokenStream(scanner), parseContext(parseContext), intermediate(parseContext.intermediate), in HlslGrammar()
134 …HlslParseContext& parseContext; // state of parsing and helper functions for building the interme… variable
DhlslScanContext.cpp519 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenizeClass()
574 parseContext.error(loc, "unexpected token", buf, ""); in tokenizeClass()
576 parseContext.error(loc, "unexpected token", tokenText, ""); in tokenizeClass()
578 parseContext.error(loc, "unexpected token", "", ""); in tokenizeClass()
880 parseContext.infoSink.info.message(EPrefixInternalError, "Unknown glslang keyword", loc); in tokenizeIdentifier()
897 if (! parseContext.symbolTable.atBuiltInLevel()) in reservedWord()
898 parseContext.error(loc, "Reserved word.", tokenText, "", ""); in reservedWord()
/external/swiftshader/src/OpenGL/compiler/
DCompiler.cpp122 TParseContext parseContext(symbolTable, extensionBehavior, intermediate, in compile() local
125 SetGlobalParseContext(&parseContext); in compile()
135 …(PaParseStrings(numStrings - firstSource, &shaderStrings[firstSource], nullptr, &parseContext) == … in compile()
136 (parseContext.getTreeRoot() != nullptr); in compile()
138 shaderVersion = parseContext.getShaderVersion(); in compile()
141 TIntermNode* root = parseContext.getTreeRoot(); in compile()
Ddebug.cpp30 TParseContext* parseContext = GetGlobalParseContext(); in Trace() local
31 if (parseContext) { in Trace()
39 parseContext->trace(buf); in Trace()
DTranslatorASM.cpp25 TParseContext& parseContext = *GetGlobalParseContext(); in translate() local
26 glsl::OutputASM outputASM(parseContext, shaderObject); in translate()
30 return parseContext.numErrors() == 0; in translate()
/external/fonttools/Lib/fontTools/mtiLib/
D__init__.py700 def parseContext(lines, font, Type, lookupMap=None): function
780 return parseContext(lines, font, "ContextSubst", lookupMap=lookupMap)
782 return parseContext(lines, font, "ContextPos", lookupMap=lookupMap)
784 return parseContext(lines, font, "ChainContextSubst", lookupMap=lookupMap)
786 return parseContext(lines, font, "ChainContextPos", lookupMap=lookupMap)