blob: 59683817f40ff226bebf448b144d78f4181a231e [file] [log] [blame]
John Bauman66b8ab22014-05-06 15:57:45 -04001//
John Baumand4ae8632014-05-06 16:18:33 -04002// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
John Bauman66b8ab22014-05-06 15:57:45 -04003// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7#ifndef _SYMBOL_TABLE_INCLUDED_
8#define _SYMBOL_TABLE_INCLUDED_
9
10//
11// Symbol table for parsing. Has these design characteristics:
12//
13// * Same symbol table can be used to compile many shaders, to preserve
14// effort of creating and loading with the large numbers of built-in
15// symbols.
16//
17// * Name mangling will be used to give each function a unique name
18// so that symbol table lookups are never ambiguous. This allows
19// a simpler symbol table structure.
20//
21// * Pushing and popping of scope, so symbol table will really be a stack
22// of symbol tables. Searched from the top, with new inserts going into
23// the top.
24//
25// * Constants: Compile time constant symbols will keep their values
26// in the symbol table. The parser can substitute constants at parse
27// time, including doing constant folding and constant propagation.
28//
29// * No temporaries: Temporaries made from operations (+, --, .xy, etc.)
30// are tracked in the intermediate representation, not the symbol table.
31//
32
33#include <assert.h>
34
Nicolas Capenscc863da2015-01-21 15:50:55 -050035#include "InfoSink.h"
36#include "intermediate.h"
John Bauman66b8ab22014-05-06 15:57:45 -040037
38//
39// Symbol base class. (Can build functions or variables out of these...)
40//
Nicolas Capens0a7f0c22015-02-18 14:47:31 -050041class TSymbol
42{
John Bauman66b8ab22014-05-06 15:57:45 -040043public:
Nicolas Capens978ddc52014-11-11 12:42:08 -050044 POOL_ALLOCATOR_NEW_DELETE();
John Bauman66b8ab22014-05-06 15:57:45 -040045 TSymbol(const TString *n) : name(n) { }
46 virtual ~TSymbol() { /* don't delete name, it's from the pool */ }
Nicolas Capens978ddc52014-11-11 12:42:08 -050047
John Bauman66b8ab22014-05-06 15:57:45 -040048 const TString& getName() const { return *name; }
49 virtual const TString& getMangledName() const { return getName(); }
50 virtual bool isFunction() const { return false; }
51 virtual bool isVariable() const { return false; }
52 void setUniqueId(int id) { uniqueId = id; }
53 int getUniqueId() const { return uniqueId; }
John Bauman66b8ab22014-05-06 15:57:45 -040054 TSymbol(const TSymbol&);
John Bauman66b8ab22014-05-06 15:57:45 -040055
56protected:
57 const TString *name;
58 unsigned int uniqueId; // For real comparing during code generation
59};
60
61//
62// Variable class, meaning a symbol that's not a function.
63//
64// There could be a separate class heirarchy for Constant variables;
65// Only one of int, bool, or float, (or none) is correct for
66// any particular use, but it's easy to do this way, and doesn't
67// seem worth having separate classes, and "getConst" can't simply return
68// different values for different types polymorphically, so this is
69// just simple and pragmatic.
70//
Nicolas Capens0a7f0c22015-02-18 14:47:31 -050071class TVariable : public TSymbol
72{
John Bauman66b8ab22014-05-06 15:57:45 -040073public:
74 TVariable(const TString *name, const TType& t, bool uT = false ) : TSymbol(name), type(t), userType(uT), unionArray(0), arrayInformationType(0) { }
75 virtual ~TVariable() { }
76 virtual bool isVariable() const { return true; }
77 TType& getType() { return type; }
78 const TType& getType() const { return type; }
79 bool isUserType() const { return userType; }
80 void setQualifier(TQualifier qualifier) { type.setQualifier(qualifier); }
81 void updateArrayInformationType(TType *t) { arrayInformationType = t; }
82 TType* getArrayInformationType() { return arrayInformationType; }
83
John Bauman66b8ab22014-05-06 15:57:45 -040084 ConstantUnion* getConstPointer()
85 {
86 if (!unionArray)
87 unionArray = new ConstantUnion[type.getObjectSize()];
88
89 return unionArray;
90 }
91
92 ConstantUnion* getConstPointer() const { return unionArray; }
93
94 void shareConstPointer( ConstantUnion *constArray)
95 {
96 if (unionArray == constArray)
97 return;
98
99 delete[] unionArray;
100 unionArray = constArray;
101 }
John Bauman66b8ab22014-05-06 15:57:45 -0400102
103protected:
104 TType type;
105 bool userType;
106 // we are assuming that Pool Allocator will free the memory allocated to unionArray
107 // when this object is destroyed
108 ConstantUnion *unionArray;
109 TType *arrayInformationType; // this is used for updating maxArraySize in all the references to a given symbol
110};
111
112//
113// The function sub-class of symbols and the parser will need to
114// share this definition of a function parameter.
115//
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500116struct TParameter
117{
John Bauman66b8ab22014-05-06 15:57:45 -0400118 TString *name;
John Baumand4ae8632014-05-06 16:18:33 -0400119 TType *type;
John Bauman66b8ab22014-05-06 15:57:45 -0400120};
121
122//
123// The function sub-class of a symbol.
124//
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500125class TFunction : public TSymbol
126{
John Bauman66b8ab22014-05-06 15:57:45 -0400127public:
128 TFunction(TOperator o) :
129 TSymbol(0),
130 returnType(TType(EbtVoid, EbpUndefined)),
131 op(o),
132 defined(false) { }
133 TFunction(const TString *name, TType& retType, TOperator tOp = EOpNull) :
134 TSymbol(name),
135 returnType(retType),
136 mangledName(TFunction::mangleName(*name)),
137 op(tOp),
138 defined(false) { }
139 virtual ~TFunction();
140 virtual bool isFunction() const { return true; }
141
142 static TString mangleName(const TString& name) { return name + '('; }
143 static TString unmangleName(const TString& mangledName)
144 {
145 return TString(mangledName.c_str(), mangledName.find_first_of('('));
146 }
147
148 void addParameter(TParameter& p)
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500149 {
John Bauman66b8ab22014-05-06 15:57:45 -0400150 parameters.push_back(p);
151 mangledName = mangledName + p.type->getMangledName();
152 }
153
154 const TString& getMangledName() const { return mangledName; }
155 const TType& getReturnType() const { return returnType; }
156
John Bauman66b8ab22014-05-06 15:57:45 -0400157 TOperator getBuiltInOp() const { return op; }
158
159 void relateToExtension(const TString& ext) { extension = ext; }
160 const TString& getExtension() const { return extension; }
161
162 void setDefined() { defined = true; }
163 bool isDefined() { return defined; }
164
165 int getParamCount() const { return static_cast<int>(parameters.size()); }
166 const TParameter& getParam(int i) const { return parameters[i]; }
167
John Bauman66b8ab22014-05-06 15:57:45 -0400168protected:
169 typedef TVector<TParameter> TParamList;
170 TParamList parameters;
171 TType returnType;
172 TString mangledName;
173 TOperator op;
174 TString extension;
175 bool defined;
176};
177
178
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500179class TSymbolTableLevel
180{
John Bauman66b8ab22014-05-06 15:57:45 -0400181public:
182 typedef TMap<TString, TSymbol*> tLevel;
183 typedef tLevel::const_iterator const_iterator;
184 typedef const tLevel::value_type tLevelPair;
185 typedef std::pair<tLevel::iterator, bool> tInsertResult;
186
Nicolas Capens978ddc52014-11-11 12:42:08 -0500187 POOL_ALLOCATOR_NEW_DELETE();
John Bauman66b8ab22014-05-06 15:57:45 -0400188 TSymbolTableLevel() { }
189 ~TSymbolTableLevel();
190
John Baumand4ae8632014-05-06 16:18:33 -0400191 bool insert(TSymbol &symbol)
John Bauman66b8ab22014-05-06 15:57:45 -0400192 {
John Baumand4ae8632014-05-06 16:18:33 -0400193 symbol.setUniqueId(++uniqueId);
194
John Bauman66b8ab22014-05-06 15:57:45 -0400195 //
196 // returning true means symbol was added to the table
197 //
198 tInsertResult result;
199 result = level.insert(tLevelPair(symbol.getMangledName(), &symbol));
200
201 return result.second;
202 }
203
204 TSymbol* find(const TString& name) const
205 {
206 tLevel::const_iterator it = level.find(name);
207 if (it == level.end())
208 return 0;
209 else
210 return (*it).second;
211 }
212
John Bauman66b8ab22014-05-06 15:57:45 -0400213 void relateToExtension(const char* name, const TString& ext);
John Bauman66b8ab22014-05-06 15:57:45 -0400214
215protected:
216 tLevel level;
John Baumand4ae8632014-05-06 16:18:33 -0400217 static int uniqueId; // for unique identification in code generation
John Bauman66b8ab22014-05-06 15:57:45 -0400218};
219
Nicolas Capense2858652015-02-18 15:30:51 -0500220enum ESymbolLevel
221{
Nicolas Capens3d7f6ed2015-02-18 16:34:50 -0500222 COMMON_BUILTINS,
223 ESSL1_BUILTINS,
224 ESSL3_BUILTINS,
225 LAST_BUILTIN_LEVEL = ESSL3_BUILTINS,
226 GLOBAL_LEVEL
Nicolas Capense2858652015-02-18 15:30:51 -0500227};
228
Nicolas Capens8fa9d232015-02-19 15:53:16 -0500229inline bool IsGenType(const TType *type)
230{
231 if(type)
232 {
233 TBasicType basicType = type->getBasicType();
234 return basicType == EbtGenType || basicType == EbtGenIType || basicType == EbtGenUType || basicType == EbtGenBType;
235 }
236
237 return false;
238}
239
240inline bool IsVecType(const TType *type)
241{
242 if(type)
243 {
244 TBasicType basicType = type->getBasicType();
245 return basicType == EbtVec || basicType == EbtIVec || basicType == EbtUVec || basicType == EbtBVec;
246 }
247
248 return false;
249}
250
251inline TType *GenType(TType *type, int size)
252{
253 ASSERT(size >= 1 && size <= 4);
254
255 if(!type)
256 {
257 return nullptr;
258 }
259
260 ASSERT(!IsVecType(type));
261
262 switch(type->getBasicType())
263 {
264 case EbtGenType: return new TType(EbtFloat, size);
265 case EbtGenIType: return new TType(EbtInt, size);
266 case EbtGenUType: return new TType(EbtUInt, size);
267 case EbtGenBType: return new TType(EbtBool, size);
268 default: return type;
269 }
270}
271
272inline TType *VecType(TType *type, int size)
273{
274 ASSERT(size >= 2 && size <= 4);
275
276 if(!type)
277 {
278 return nullptr;
279 }
280
281 ASSERT(!IsGenType(type));
282
283 switch(type->getBasicType())
284 {
285 case EbtVec: return new TType(EbtFloat, size);
286 case EbtIVec: return new TType(EbtInt, size);
287 case EbtUVec: return new TType(EbtUInt, size);
288 case EbtBVec: return new TType(EbtBool, size);
289 default: return type;
290 }
291}
292
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500293class TSymbolTable
294{
John Bauman66b8ab22014-05-06 15:57:45 -0400295public:
John Baumand4ae8632014-05-06 16:18:33 -0400296 TSymbolTable()
John Bauman66b8ab22014-05-06 15:57:45 -0400297 {
298 //
299 // The symbol table cannot be used until push() is called, but
300 // the lack of an initial call to push() can be used to detect
301 // that the symbol table has not been preloaded with built-ins.
302 //
303 }
304
305 ~TSymbolTable()
306 {
Nicolas Capense2858652015-02-18 15:30:51 -0500307 while(currentLevel() > LAST_BUILTIN_LEVEL)
308 {
309 pop();
310 }
John Bauman66b8ab22014-05-06 15:57:45 -0400311 }
312
Nicolas Capense2858652015-02-18 15:30:51 -0500313 bool isEmpty() { return table.empty(); }
314 bool atBuiltInLevel() { return currentLevel() <= LAST_BUILTIN_LEVEL; }
315 bool atGlobalLevel() { return currentLevel() <= GLOBAL_LEVEL; }
John Bauman66b8ab22014-05-06 15:57:45 -0400316 void push()
317 {
318 table.push_back(new TSymbolTableLevel);
319 precisionStack.push_back( PrecisionStackLevel() );
320 }
321
322 void pop()
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500323 {
324 delete table[currentLevel()];
325 table.pop_back();
John Bauman66b8ab22014-05-06 15:57:45 -0400326 precisionStack.pop_back();
327 }
328
Nicolas Capensd603ecd2015-02-18 14:52:21 -0500329 bool declare(TSymbol &symbol)
John Bauman66b8ab22014-05-06 15:57:45 -0400330 {
Nicolas Capensd603ecd2015-02-18 14:52:21 -0500331 return insert(currentLevel(), symbol);
332 }
333
Nicolas Capense2858652015-02-18 15:30:51 -0500334 bool insert(ESymbolLevel level, TSymbol &symbol)
Nicolas Capensd603ecd2015-02-18 14:52:21 -0500335 {
336 return table[level]->insert(symbol);
John Bauman66b8ab22014-05-06 15:57:45 -0400337 }
338
Nicolas Capense2858652015-02-18 15:30:51 -0500339 bool insertConstInt(ESymbolLevel level, const char *name, int value)
John Baumand4ae8632014-05-06 16:18:33 -0400340 {
341 TVariable *constant = new TVariable(NewPoolTString(name), TType(EbtInt, EbpUndefined, EvqConst, 1));
342 constant->getConstPointer()->setIConst(value);
Nicolas Capense2858652015-02-18 15:30:51 -0500343 return insert(level, *constant);
John Baumand4ae8632014-05-06 16:18:33 -0400344 }
345
Nicolas Capens33cda112015-02-24 17:35:47 -0500346 void insertBuiltIn(ESymbolLevel level, TOperator op, TType *rvalue, const char *name, TType *ptype1, TType *ptype2 = 0, TType *ptype3 = 0, TType *ptype4 = 0)
John Baumand4ae8632014-05-06 16:18:33 -0400347 {
Nicolas Capensf8a4cba2015-02-18 17:30:46 -0500348 if(ptype1->getBasicType() == EbtGSampler2D)
349 {
350 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
351 insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler2D), ptype2, ptype3, ptype4);
352 insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISampler2D), ptype2, ptype3, ptype4);
353 insertBuiltIn(level, gvec4 ? new TType(EbtUInt, 4) : rvalue, name, new TType(EbtUSampler2D), ptype2, ptype3, ptype4);
Nicolas Capensf8a4cba2015-02-18 17:30:46 -0500354 }
355 else if(ptype1->getBasicType() == EbtGSampler3D)
356 {
357 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
358 insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler3D), ptype2, ptype3, ptype4);
359 insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISampler3D), ptype2, ptype3, ptype4);
360 insertBuiltIn(level, gvec4 ? new TType(EbtUInt, 4) : rvalue, name, new TType(EbtUSampler3D), ptype2, ptype3, ptype4);
Nicolas Capensf8a4cba2015-02-18 17:30:46 -0500361 }
362 else if(ptype1->getBasicType() == EbtGSamplerCube)
363 {
364 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
365 insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSamplerCube), ptype2, ptype3, ptype4);
366 insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISamplerCube), ptype2, ptype3, ptype4);
367 insertBuiltIn(level, gvec4 ? new TType(EbtUInt, 4) : rvalue, name, new TType(EbtUSamplerCube), ptype2, ptype3, ptype4);
Nicolas Capensf8a4cba2015-02-18 17:30:46 -0500368 }
369 else if(ptype1->getBasicType() == EbtGSampler2DArray)
370 {
371 bool gvec4 = (rvalue->getBasicType() == EbtGVec4);
372 insertBuiltIn(level, gvec4 ? new TType(EbtFloat, 4) : rvalue, name, new TType(EbtSampler2DArray), ptype2, ptype3, ptype4);
373 insertBuiltIn(level, gvec4 ? new TType(EbtInt, 4) : rvalue, name, new TType(EbtISampler2DArray), ptype2, ptype3, ptype4);
374 insertBuiltIn(level, gvec4 ? new TType(EbtUInt, 4) : rvalue, name, new TType(EbtUSampler2DArray), ptype2, ptype3, ptype4);
Nicolas Capensf8a4cba2015-02-18 17:30:46 -0500375 }
Nicolas Capens33cda112015-02-24 17:35:47 -0500376 else if(IsGenType(rvalue) || IsGenType(ptype1) || IsGenType(ptype2) || IsGenType(ptype3))
Nicolas Capens8fa9d232015-02-19 15:53:16 -0500377 {
Nicolas Capens33cda112015-02-24 17:35:47 -0500378 ASSERT(!ptype4);
379 insertBuiltIn(level, op, GenType(rvalue, 1), name, GenType(ptype1, 1), GenType(ptype2, 1), GenType(ptype3, 1));
380 insertBuiltIn(level, op, GenType(rvalue, 2), name, GenType(ptype1, 2), GenType(ptype2, 2), GenType(ptype3, 2));
381 insertBuiltIn(level, op, GenType(rvalue, 3), name, GenType(ptype1, 3), GenType(ptype2, 3), GenType(ptype3, 3));
382 insertBuiltIn(level, op, GenType(rvalue, 4), name, GenType(ptype1, 4), GenType(ptype2, 4), GenType(ptype3, 4));
Nicolas Capens8fa9d232015-02-19 15:53:16 -0500383 }
Nicolas Capens33cda112015-02-24 17:35:47 -0500384 else if(IsVecType(rvalue) || IsVecType(ptype1) || IsVecType(ptype2) || IsVecType(ptype3))
Nicolas Capens8fa9d232015-02-19 15:53:16 -0500385 {
Nicolas Capens33cda112015-02-24 17:35:47 -0500386 ASSERT(!ptype4);
387 insertBuiltIn(level, op, VecType(rvalue, 2), name, VecType(ptype1, 2), VecType(ptype2, 2), VecType(ptype3, 2));
388 insertBuiltIn(level, op, VecType(rvalue, 3), name, VecType(ptype1, 3), VecType(ptype2, 3), VecType(ptype3, 3));
389 insertBuiltIn(level, op, VecType(rvalue, 4), name, VecType(ptype1, 4), VecType(ptype2, 4), VecType(ptype3, 4));
Nicolas Capens8fa9d232015-02-19 15:53:16 -0500390 }
Nicolas Capens33cda112015-02-24 17:35:47 -0500391 else
John Baumand4ae8632014-05-06 16:18:33 -0400392 {
Nicolas Capens33cda112015-02-24 17:35:47 -0500393 TFunction *function = new TFunction(NewPoolTString(name), *rvalue, op);
John Baumand4ae8632014-05-06 16:18:33 -0400394
Nicolas Capens33cda112015-02-24 17:35:47 -0500395 TParameter param1 = {0, ptype1};
396 function->addParameter(param1);
John Baumand4ae8632014-05-06 16:18:33 -0400397
Nicolas Capens33cda112015-02-24 17:35:47 -0500398 if(ptype2)
399 {
400 TParameter param2 = {0, ptype2};
401 function->addParameter(param2);
402 }
Nicolas Capens8fa9d232015-02-19 15:53:16 -0500403
Nicolas Capens33cda112015-02-24 17:35:47 -0500404 if(ptype3)
405 {
406 TParameter param3 = {0, ptype3};
407 function->addParameter(param3);
408 }
409
410 if(ptype4)
411 {
412 TParameter param4 = {0, ptype4};
413 function->addParameter(param4);
414 }
415
416 insert(level, *function);
417 }
418 }
419
420 void insertBuiltIn(ESymbolLevel level, TType *rvalue, const char *name, TType *ptype1, TType *ptype2 = 0, TType *ptype3 = 0, TType *ptype4 = 0)
421 {
422 insertBuiltIn(level, EOpNull, rvalue, name, ptype1, ptype2, ptype3, ptype4);
John Bauman66b8ab22014-05-06 15:57:45 -0400423 }
424
Nicolas Capense2858652015-02-18 15:30:51 -0500425 TSymbol *find(const TString &name, int shaderVersion, bool *builtIn = false, bool *sameScope = false) const;
426 TSymbol *findBuiltIn(const TString &name, int shaderVersion) const;
John Bauman66b8ab22014-05-06 15:57:45 -0400427
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500428 TSymbolTableLevel *getOuterLevel() const
429 {
Nicolas Capense2858652015-02-18 15:30:51 -0500430 assert(currentLevel() >= 1);
John Bauman66b8ab22014-05-06 15:57:45 -0400431 return table[currentLevel() - 1];
432 }
433
Nicolas Capense2858652015-02-18 15:30:51 -0500434 void relateToExtension(ESymbolLevel level, const char *name, const TString &ext)
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500435 {
Nicolas Capense2858652015-02-18 15:30:51 -0500436 table[level]->relateToExtension(name, ext);
John Bauman66b8ab22014-05-06 15:57:45 -0400437 }
John Bauman66b8ab22014-05-06 15:57:45 -0400438
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500439 bool setDefaultPrecision(const TPublicType &type, TPrecision prec)
440 {
John Baumand4ae8632014-05-06 16:18:33 -0400441 if (IsSampler(type.type))
442 return true; // Skip sampler types for the time being
443 if (type.type != EbtFloat && type.type != EbtInt)
444 return false; // Only set default precision for int/float
445 if (type.size != 1 || type.matrix || type.array)
446 return false; // Not allowed to set for aggregate types
John Bauman66b8ab22014-05-06 15:57:45 -0400447 int indexOfLastElement = static_cast<int>(precisionStack.size()) - 1;
John Baumand4ae8632014-05-06 16:18:33 -0400448 precisionStack[indexOfLastElement][type.type] = prec; // Uses map operator [], overwrites the current value
449 return true;
John Bauman66b8ab22014-05-06 15:57:45 -0400450 }
451
452 // Searches down the precisionStack for a precision qualifier for the specified TBasicType
Nicolas Capens3c20f802015-02-17 17:17:20 -0500453 TPrecision getDefaultPrecision( TBasicType type)
454 {
455 // unsigned integers use the same precision as signed
456 if (type == EbtUInt) type = EbtInt;
457
John Bauman66b8ab22014-05-06 15:57:45 -0400458 if( type != EbtFloat && type != EbtInt ) return EbpUndefined;
459 int level = static_cast<int>(precisionStack.size()) - 1;
460 assert( level >= 0); // Just to be safe. Should not happen.
461 PrecisionStackLevel::iterator it;
462 TPrecision prec = EbpUndefined; // If we dont find anything we return this. Should we error check this?
463 while( level >= 0 ){
464 it = precisionStack[level].find( type );
465 if( it != precisionStack[level].end() ){
466 prec = (*it).second;
467 break;
468 }
469 level--;
470 }
471 return prec;
472 }
473
Nicolas Capens0a7f0c22015-02-18 14:47:31 -0500474protected:
Nicolas Capense2858652015-02-18 15:30:51 -0500475 ESymbolLevel currentLevel() const { return static_cast<ESymbolLevel>(table.size() - 1); }
John Bauman66b8ab22014-05-06 15:57:45 -0400476
477 std::vector<TSymbolTableLevel*> table;
478 typedef std::map< TBasicType, TPrecision > PrecisionStackLevel;
479 std::vector< PrecisionStackLevel > precisionStack;
John Bauman66b8ab22014-05-06 15:57:45 -0400480};
481
482#endif // _SYMBOL_TABLE_INCLUDED_