blob: 54a0ef490ebe8d2fc96f02562c1255cd7ccddd4b [file] [log] [blame]
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +00001//
Nicolas Capens16004fc2014-06-11 11:29:11 -04002// Copyright (c) 2002-2014 The ANGLE Project Authors. All rights reserved.
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +00003// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
Geoff Lang0a73dd82014-11-19 16:18:08 -05006#ifndef COMPILER_TRANSLATOR_PARSECONTEXT_H_
7#define COMPILER_TRANSLATOR_PARSECONTEXT_H_
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +00008
Jamie Madilld4a3a312014-06-25 16:04:56 -04009#include "compiler/translator/Compiler.h"
Geoff Lang17732822013-08-29 13:46:49 -040010#include "compiler/translator/Diagnostics.h"
11#include "compiler/translator/DirectiveHandler.h"
Jamie Madillb1a85f42014-08-19 15:23:24 -040012#include "compiler/translator/Intermediate.h"
Geoff Lang17732822013-08-29 13:46:49 -040013#include "compiler/translator/SymbolTable.h"
daniel@transgaming.comb401a922012-10-26 18:58:24 +000014#include "compiler/preprocessor/Preprocessor.h"
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000015
16struct TMatrixFields {
daniel@transgaming.com0578f812010-05-17 09:58:39 +000017 bool wholeRow;
18 bool wholeCol;
19 int row;
20 int col;
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000021};
22
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000023//
24// The following are extra variables needed during parsing, grouped together so
25// they can be passed to the parser without needing a global.
26//
27struct TParseContext {
Olli Etuahoa3a5cc62015-02-13 13:12:22 +020028 TParseContext(TSymbolTable& symt, TExtensionBehavior& ext, TIntermediate& interm, sh::GLenum type, ShShaderSpec spec, int options, bool checksPrecErrors, TInfoSink& is, bool debugShaderPrecisionSupported) :
kbr@chromium.org476541f2011-10-27 21:14:51 +000029 intermediate(interm),
30 symbolTable(symt),
kbr@chromium.org476541f2011-10-27 21:14:51 +000031 shaderType(type),
32 shaderSpec(spec),
33 compileOptions(options),
kbr@chromium.org476541f2011-10-27 21:14:51 +000034 treeRoot(0),
Olli Etuaho49300862015-02-20 14:54:49 +020035 mLoopNestingLevel(0),
kbr@chromium.org476541f2011-10-27 21:14:51 +000036 structNestingLevel(0),
Olli Etuaho53f076f2015-02-20 10:55:14 +020037 mSwitchNestingLevel(0),
kbr@chromium.org476541f2011-10-27 21:14:51 +000038 currentFunctionType(NULL),
Olli Etuaho49300862015-02-20 14:54:49 +020039 mFunctionReturnsValue(false),
kbr@chromium.org476541f2011-10-27 21:14:51 +000040 checksPrecisionErrors(checksPrecErrors),
Nico Weber092e1a12015-03-09 07:40:11 -070041 fragmentPrecisionHigh(false),
Jamie Madill099c0f32013-06-20 11:55:52 -040042 defaultMatrixPacking(EmpColumnMajor),
Jamie Madill1566ef72013-06-20 11:55:54 -040043 defaultBlockStorage(EbsShared),
alokp@chromium.org73bc2982012-06-19 18:48:05 +000044 diagnostics(is),
shannon.woods%transgaming.com@gtempaccount.com5524db02013-04-13 03:38:16 +000045 shaderVersion(100),
Olli Etuaho853dc1a2014-11-06 17:25:48 +020046 directiveHandler(ext, diagnostics, shaderVersion, debugShaderPrecisionSupported),
alokp@chromium.org73bc2982012-06-19 18:48:05 +000047 preprocessor(&diagnostics, &directiveHandler),
Olli Etuahofa33d582015-04-09 14:33:12 +030048 scanner(NULL),
49 mDeferredSingleDeclarationErrorCheck(false)
50 {
51 }
daniel@transgaming.com0578f812010-05-17 09:58:39 +000052 TIntermediate& intermediate; // to hold and build a parse tree
53 TSymbolTable& symbolTable; // symbol table that goes with the language currently being parsed
Jamie Madill183bde52014-07-02 15:31:19 -040054 sh::GLenum shaderType; // vertex or fragment language (future: pack or unpack)
alokp@chromium.org4888ceb2010-10-01 21:13:12 +000055 ShShaderSpec shaderSpec; // The language specification compiler conforms to - GLES2 or WebGL.
shannon.woods%transgaming.com@gtempaccount.com5524db02013-04-13 03:38:16 +000056 int shaderVersion;
apatrick@chromium.org0f4cefe2011-01-26 19:30:57 +000057 int compileOptions;
daniel@transgaming.com0578f812010-05-17 09:58:39 +000058 TIntermNode* treeRoot; // root of parse tree being created
Olli Etuaho49300862015-02-20 14:54:49 +020059 int mLoopNestingLevel; // 0 if outside all loops
kbr@chromium.org476541f2011-10-27 21:14:51 +000060 int structNestingLevel; // incremented while parsing a struct declaration
Olli Etuaho53f076f2015-02-20 10:55:14 +020061 int mSwitchNestingLevel; // 0 if outside all switch statements
daniel@transgaming.com0578f812010-05-17 09:58:39 +000062 const TType* currentFunctionType; // the return type of the function that's currently being parsed
Olli Etuaho49300862015-02-20 14:54:49 +020063 bool mFunctionReturnsValue; // true if a non-void function has a return
zmo@google.comdc4b4f82011-06-17 00:42:53 +000064 bool checksPrecisionErrors; // true if an error will be generated when a variable is declared without precision, explicit or implicit.
shannon.woods%transgaming.com@gtempaccount.comcbb6b6a2013-04-13 03:27:47 +000065 bool fragmentPrecisionHigh; // true if highp precision is supported in the fragment language.
Jamie Madill099c0f32013-06-20 11:55:52 -040066 TLayoutMatrixPacking defaultMatrixPacking;
Jamie Madill1566ef72013-06-20 11:55:54 -040067 TLayoutBlockStorage defaultBlockStorage;
alokp@chromium.org75fe6b72011-08-14 05:31:22 +000068 TString HashErrMsg;
alokp@chromium.org73bc2982012-06-19 18:48:05 +000069 TDiagnostics diagnostics;
70 TDirectiveHandler directiveHandler;
71 pp::Preprocessor preprocessor;
alokp@chromium.org75fe6b72011-08-14 05:31:22 +000072 void* scanner;
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000073
shannon.woods%transgaming.com@gtempaccount.com5524db02013-04-13 03:38:16 +000074 int getShaderVersion() const { return shaderVersion; }
alokp@chromium.org6b495712012-06-29 00:06:58 +000075 int numErrors() const { return diagnostics.numErrors(); }
alokp@chromium.org646ea1e2012-06-15 17:36:31 +000076 TInfoSink& infoSink() { return diagnostics.infoSink(); }
Jamie Madill075edd82013-07-08 13:30:19 -040077 void error(const TSourceLoc& loc, const char *reason, const char* token,
maxvujovic@gmail.comc6b3b3c2012-06-27 22:49:39 +000078 const char* extraInfo="");
Jamie Madill075edd82013-07-08 13:30:19 -040079 void warning(const TSourceLoc& loc, const char* reason, const char* token,
maxvujovic@gmail.comc6b3b3c2012-06-27 22:49:39 +000080 const char* extraInfo="");
alokp@chromium.org8b851c62012-06-15 16:25:11 +000081 void trace(const char* str);
daniel@transgaming.com0578f812010-05-17 09:58:39 +000082 void recover();
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000083
Jamie Madill5c097022014-08-20 16:38:32 -040084 // This method is guaranteed to succeed, even if no variable with 'name' exists.
85 const TVariable *getNamedVariable(const TSourceLoc &location, const TString *name, const TSymbol *symbol);
86
Jamie Madill075edd82013-07-08 13:30:19 -040087 bool parseVectorFields(const TString&, int vecSize, TVectorFields&, const TSourceLoc& line);
88 bool parseMatrixFields(const TString&, int matCols, int matRows, TMatrixFields&, const TSourceLoc& line);
alokp@chromium.org75fe6b72011-08-14 05:31:22 +000089
Jamie Madill075edd82013-07-08 13:30:19 -040090 bool reservedErrorCheck(const TSourceLoc& line, const TString& identifier);
91 void assignError(const TSourceLoc& line, const char* op, TString left, TString right);
92 void unaryOpError(const TSourceLoc& line, const char* op, TString operand);
93 void binaryOpError(const TSourceLoc& line, const char* op, TString left, TString right);
94 bool precisionErrorCheck(const TSourceLoc& line, TPrecision precision, TBasicType type);
95 bool lValueErrorCheck(const TSourceLoc& line, const char* op, TIntermTyped*);
daniel@transgaming.com0578f812010-05-17 09:58:39 +000096 bool constErrorCheck(TIntermTyped* node);
97 bool integerErrorCheck(TIntermTyped* node, const char* token);
Jamie Madill075edd82013-07-08 13:30:19 -040098 bool globalErrorCheck(const TSourceLoc& line, bool global, const char* token);
99 bool constructorErrorCheck(const TSourceLoc& line, TIntermNode*, TFunction&, TOperator, TType*);
100 bool arraySizeErrorCheck(const TSourceLoc& line, TIntermTyped* expr, int& size);
Olli Etuaho3739d232015-04-08 12:23:44 +0300101 bool arrayQualifierErrorCheck(const TSourceLoc &line, const TPublicType &type);
Jamie Madill075edd82013-07-08 13:30:19 -0400102 bool arrayTypeErrorCheck(const TSourceLoc& line, TPublicType type);
Olli Etuaho6ed7bbe2015-04-07 18:08:46 +0300103 bool voidErrorCheck(const TSourceLoc &line, const TString &identifier, const TBasicType &type);
Jamie Madill075edd82013-07-08 13:30:19 -0400104 bool boolErrorCheck(const TSourceLoc&, const TIntermTyped*);
105 bool boolErrorCheck(const TSourceLoc&, const TPublicType&);
106 bool samplerErrorCheck(const TSourceLoc& line, const TPublicType& pType, const char* reason);
Jamie Madill075edd82013-07-08 13:30:19 -0400107 bool locationDeclaratorListCheck(const TSourceLoc& line, const TPublicType &pType);
108 bool parameterSamplerErrorCheck(const TSourceLoc& line, TQualifier qualifier, const TType& type);
Jamie Madill075edd82013-07-08 13:30:19 -0400109 bool paramErrorCheck(const TSourceLoc& line, TQualifier qualifier, TQualifier paramQualifier, TType* type);
110 bool extensionErrorCheck(const TSourceLoc& line, const TString&);
Olli Etuahofa33d582015-04-09 14:33:12 +0300111 bool singleDeclarationErrorCheck(TPublicType &publicType, const TSourceLoc &identifierLocation);
Jamie Madill075edd82013-07-08 13:30:19 -0400112 bool layoutLocationErrorCheck(const TSourceLoc& location, const TLayoutQualifier &layoutQualifier);
Olli Etuahob6e07a62015-02-16 12:22:10 +0200113 bool functionCallLValueErrorCheck(const TFunction *fnCandidate, TIntermAggregate *);
alokp@chromium.org8b851c62012-06-15 16:25:11 +0000114
Jamie Madill7a217de2013-07-08 15:10:00 -0400115 const TPragma& pragma() const { return directiveHandler.pragma(); }
alokp@chromium.org73bc2982012-06-19 18:48:05 +0000116 const TExtensionBehavior& extensionBehavior() const { return directiveHandler.extensionBehavior(); }
zmo@google.com09c323a2011-08-12 18:22:25 +0000117 bool supportsExtension(const char* extension);
Jamie Madill5d287f52013-07-12 15:38:19 -0400118 bool isExtensionEnabled(const char* extension) const;
Jamie Madill075edd82013-07-08 13:30:19 -0400119 void handleExtensionDirective(const TSourceLoc& loc, const char* extName, const char* behavior);
Zhenyao Mo94ac7b72014-10-15 18:22:08 -0700120 void handlePragmaDirective(const TSourceLoc& loc, const char* name, const char* value, bool stdgl);
alokp@chromium.org75fe6b72011-08-14 05:31:22 +0000121
122 bool containsSampler(TType& type);
123 bool areAllChildConst(TIntermAggregate* aggrNode);
Austin Kinross3ae64652015-01-26 15:51:39 -0800124 const TFunction* findFunction(const TSourceLoc& line, TFunction* pfnCall, int inputShaderVersion, bool *builtIn = 0);
Olli Etuaho2935c582015-04-08 14:32:06 +0300125 bool executeInitializer(const TSourceLoc &line, const TString &identifier, TPublicType &pType,
Olli Etuahoe7847b02015-03-16 11:56:12 +0200126 TIntermTyped *initializer, TIntermNode **intermNode);
alokp@chromium.org75fe6b72011-08-14 05:31:22 +0000127
shannonwoods@chromium.org0f376ca2013-05-30 00:19:23 +0000128 TPublicType addFullySpecifiedType(TQualifier qualifier, const TPublicType& typeSpecifier);
Jamie Madilla5efff92013-06-06 11:56:47 -0400129 TPublicType addFullySpecifiedType(TQualifier qualifier, TLayoutQualifier layoutQualifier, const TPublicType& typeSpecifier);
Olli Etuahoe7847b02015-03-16 11:56:12 +0200130
Olli Etuahofa33d582015-04-09 14:33:12 +0300131 TIntermAggregate *parseSingleDeclaration(TPublicType &publicType,
132 const TSourceLoc &identifierOrTypeLocation, const TString &identifier);
Olli Etuahoe7847b02015-03-16 11:56:12 +0200133 TIntermAggregate *parseSingleArrayDeclaration(TPublicType &publicType,
134 const TSourceLoc &identifierLocation, const TString &identifier,
135 const TSourceLoc &indexLocation, TIntermTyped *indexExpression);
136 TIntermAggregate *parseSingleInitDeclaration(TPublicType &publicType,
137 const TSourceLoc &identifierLocation, const TString &identifier,
138 const TSourceLoc &initLocation, TIntermTyped *initializer);
Jamie Madill47e3ec02014-08-20 16:38:33 -0400139
Olli Etuaho3875ffd2015-04-10 16:45:14 +0300140 // Parse a declaration like "type a[n] = initializer"
141 // Note that this does not apply to declarations like "type[n] a = initializer"
142 TIntermAggregate *parseSingleArrayInitDeclaration(TPublicType &publicType,
143 const TSourceLoc &identifierLocation, const TString &identifier,
144 const TSourceLoc &indexLocation, TIntermTyped *indexExpression,
145 const TSourceLoc &initLocation, TIntermTyped *initializer);
146
Olli Etuahoe7847b02015-03-16 11:56:12 +0200147 TIntermAggregate *parseInvariantDeclaration(const TSourceLoc &invariantLoc, const TSourceLoc &identifierLoc,
148 const TString *identifier, const TSymbol *symbol);
149
150 TIntermAggregate *parseDeclarator(TPublicType &publicType, TIntermAggregate *aggregateDeclaration,
151 const TSourceLoc &identifierLocation, const TString &identifier);
152 TIntermAggregate *parseArrayDeclarator(TPublicType &publicType, TIntermAggregate *aggregateDeclaration,
153 const TSourceLoc &identifierLocation, const TString &identifier,
154 const TSourceLoc &arrayLocation, TIntermTyped *indexExpression);
155 TIntermAggregate *parseInitDeclarator(TPublicType &publicType, TIntermAggregate *aggregateDeclaration,
156 const TSourceLoc &identifierLocation, const TString &identifier,
157 const TSourceLoc &initLocation, TIntermTyped *initializer);
158
Olli Etuaho3875ffd2015-04-10 16:45:14 +0300159 // Parse a declarator like "a[n] = initializer"
160 TIntermAggregate *parseArrayInitDeclarator(TPublicType &publicType, TIntermAggregate *aggregateDeclaration,
161 const TSourceLoc& identifierLocation, const TString &identifier,
162 const TSourceLoc& indexLocation, TIntermTyped *indexExpression,
163 const TSourceLoc &initLocation, TIntermTyped *initializer);
164
Jamie Madilla295edf2013-06-06 11:56:48 -0400165 void parseGlobalLayoutQualifier(const TPublicType &typeQualifier);
shannonwoods@chromium.org18851132013-05-30 00:19:54 +0000166 TFunction *addConstructorFunc(TPublicType publicType);
Olli Etuaho21203702014-11-13 16:16:21 +0200167 TIntermTyped* addConstructor(TIntermNode*, TType*, TOperator, TFunction*, const TSourceLoc&);
daniel@transgaming.com0578f812010-05-17 09:58:39 +0000168 TIntermTyped* foldConstConstructor(TIntermAggregate* aggrNode, const TType& type);
Jamie Madill075edd82013-07-08 13:30:19 -0400169 TIntermTyped* addConstVectorNode(TVectorFields&, TIntermTyped*, const TSourceLoc&);
170 TIntermTyped* addConstMatrixNode(int , TIntermTyped*, const TSourceLoc&);
171 TIntermTyped* addConstArrayNode(int index, TIntermTyped* node, const TSourceLoc& line);
172 TIntermTyped* addConstStruct(const TString &identifier, TIntermTyped *node, const TSourceLoc& line);
173 TIntermTyped* addIndexExpression(TIntermTyped *baseExpression, const TSourceLoc& location, TIntermTyped *indexExpression);
174 TIntermTyped* addFieldSelectionExpression(TIntermTyped *baseExpression, const TSourceLoc& dotLocation, const TString &fieldString, const TSourceLoc& fieldLocation);
shannonwoods@chromium.orga9100882013-05-30 00:11:39 +0000175
Jamie Madill98493dd2013-07-08 14:39:03 -0400176 TFieldList *addStructDeclaratorList(const TPublicType& typeSpecifier, TFieldList *fieldList);
177 TPublicType addStructure(const TSourceLoc& structLine, const TSourceLoc& nameLine, const TString *structName, TFieldList* fieldList);
kbr@chromium.org476541f2011-10-27 21:14:51 +0000178
Jamie Madill98493dd2013-07-08 14:39:03 -0400179 TIntermAggregate* addInterfaceBlock(const TPublicType& typeQualifier, const TSourceLoc& nameLine, const TString& blockName, TFieldList* fieldList,
180 const TString* instanceName, const TSourceLoc& instanceLine, TIntermTyped* arrayIndex, const TSourceLoc& arrayIndexLine);
shannonwoods@chromium.org5668c5d2013-05-30 00:11:48 +0000181
Jamie Madill075edd82013-07-08 13:30:19 -0400182 TLayoutQualifier parseLayoutQualifier(const TString &qualifierType, const TSourceLoc& qualifierTypeLine);
183 TLayoutQualifier parseLayoutQualifier(const TString &qualifierType, const TSourceLoc& qualifierTypeLine, const TString &intValueString, int intValue, const TSourceLoc& intValueLine);
Jamie Madilla5efff92013-06-06 11:56:47 -0400184 TLayoutQualifier joinLayoutQualifiers(TLayoutQualifier leftQualifier, TLayoutQualifier rightQualifier);
Jamie Madillf2e0f9b2013-08-26 16:39:42 -0400185 TPublicType joinInterpolationQualifiers(const TSourceLoc &interpolationLoc, TQualifier interpolationQualifier,
186 const TSourceLoc &storageLoc, TQualifier storageQualifier);
shannonwoods@chromium.org302adfe2013-05-30 00:21:06 +0000187
kbr@chromium.org476541f2011-10-27 21:14:51 +0000188 // Performs an error check for embedded struct declarations.
189 // Returns true if an error was raised due to the declaration of
190 // this struct.
Jamie Madill075edd82013-07-08 13:30:19 -0400191 bool enterStructDeclaration(const TSourceLoc& line, const TString& identifier);
kbr@chromium.org476541f2011-10-27 21:14:51 +0000192 void exitStructDeclaration();
193
Jamie Madill98493dd2013-07-08 14:39:03 -0400194 bool structNestingErrorCheck(const TSourceLoc& line, const TField& field);
Olli Etuaho09b22472015-02-11 11:47:26 +0200195
Olli Etuahoa3a36662015-02-17 13:46:51 +0200196 TIntermSwitch *addSwitch(TIntermTyped *init, TIntermAggregate *statementList, const TSourceLoc &loc);
197 TIntermCase *addCase(TIntermTyped *condition, const TSourceLoc &loc);
198 TIntermCase *addDefault(const TSourceLoc &loc);
199
Olli Etuaho09b22472015-02-11 11:47:26 +0200200 TIntermTyped *addUnaryMath(TOperator op, TIntermTyped *child, const TSourceLoc &);
201 TIntermTyped *addUnaryMathLValue(TOperator op, TIntermTyped *child, const TSourceLoc &);
202 TIntermTyped *addBinaryMath(TOperator op, TIntermTyped *left, TIntermTyped *right,
203 const TSourceLoc &);
204 TIntermTyped *addBinaryMathBooleanResult(TOperator op, TIntermTyped *left, TIntermTyped *right,
205 const TSourceLoc &);
Olli Etuahod6b14282015-03-17 14:31:35 +0200206 TIntermTyped *addAssign(TOperator op, TIntermTyped *left, TIntermTyped *right,
207 const TSourceLoc &loc);
Olli Etuaho49300862015-02-20 14:54:49 +0200208
209 TIntermBranch *addBranch(TOperator op, const TSourceLoc &loc);
210 TIntermBranch *addBranch(TOperator op, TIntermTyped *returnValue, const TSourceLoc &loc);
Olli Etuahoc4ba3be2015-03-02 14:42:24 +0200211
212 TIntermTyped *addFunctionCallOrMethod(TFunction *fnCall, TIntermNode *node,
213 const TSourceLoc &loc, bool *fatalError);
Olli Etuahofc1806e2015-03-17 13:03:11 +0200214
Olli Etuaho52901742015-04-15 13:42:45 +0300215 TIntermTyped *addTernarySelection(TIntermTyped *cond, TIntermTyped *trueBlock, TIntermTyped *falseBlock,
216 const TSourceLoc &line);
217
Olli Etuahofc1806e2015-03-17 13:03:11 +0200218 private:
Olli Etuaho2935c582015-04-08 14:32:06 +0300219 bool declareVariable(const TSourceLoc &line, const TString &identifier, const TType &type, TVariable **variable);
220
Olli Etuaho376f1b52015-04-13 13:23:41 +0300221 bool nonInitErrorCheck(const TSourceLoc &line, const TString &identifier, TPublicType *type);
222
Olli Etuahofc1806e2015-03-17 13:03:11 +0200223 TIntermTyped *addBinaryMathInternal(TOperator op, TIntermTyped *left, TIntermTyped *right,
224 const TSourceLoc &loc);
Olli Etuahod6b14282015-03-17 14:31:35 +0200225 TIntermTyped *createAssign(TOperator op, TIntermTyped *left, TIntermTyped *right,
226 const TSourceLoc &loc);
Olli Etuahof6c694b2015-03-26 14:50:53 +0200227 // The funcReturnType parameter is expected to be non-null when the operation is a built-in function.
228 // It is expected to be null for other unary operators.
229 TIntermTyped *createUnaryMath(TOperator op, TIntermTyped *child, const TSourceLoc &loc,
230 const TType *funcReturnType);
Olli Etuahod6b14282015-03-17 14:31:35 +0200231
Olli Etuaho47fd36a2015-03-19 14:22:24 +0200232 // Return true if the checks pass
233 bool binaryOpCommonCheck(TOperator op, TIntermTyped *left, TIntermTyped *right,
Olli Etuahod6b14282015-03-17 14:31:35 +0200234 const TSourceLoc &loc);
Olli Etuahofa33d582015-04-09 14:33:12 +0300235
236 // Set to true when the last/current declarator list was started with an empty declaration.
237 bool mDeferredSingleDeclarationErrorCheck;
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +0000238};
239
shannon.woods@transgaming.comd64b3da2013-02-28 23:19:26 +0000240int PaParseStrings(size_t count, const char* const string[], const int length[],
alokp@chromium.org044a5cf2010-11-12 15:42:16 +0000241 TParseContext* context);
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +0000242
Geoff Lang0a73dd82014-11-19 16:18:08 -0500243#endif // COMPILER_TRANSLATOR_PARSECONTEXT_H_