Remove type categories from the GLSL AST

Type categories are now handled at semantic analysis time
so we don't need to track them at syntax analysis time.
This commit is contained in:
Rhys Weatherley
2010-11-29 13:04:54 +10:00
parent 614127a557
commit c173959f89
5 changed files with 179 additions and 221 deletions

View File

@@ -157,9 +157,9 @@ private:
return node;
}
TypeAST *makeBasicType(int token, BasicTypeAST::Category category)
TypeAST *makeBasicType(int token)
{
TypeAST *type = new (_engine->pool()) BasicTypeAST(token, spell[token], category);
TypeAST *type = new (_engine->pool()) BasicTypeAST(token, spell[token]);
type->lineno = yyloc >= 0 ? (_tokens[yyloc].line + 1) : 0;
return type;
}