summaryrefslogtreecommitdiff
path: root/src/libs/glsl/glslparser.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-11-18 13:01:27 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-11-18 13:36:50 +1000
commit2fab4ba8ad56f229cf3a41975bb5be9b39c949fd (patch)
tree26a452510b0d09288ad94454a0d475d9ecdbc0ed /src/libs/glsl/glslparser.h
parent0fa980028ea74c7ba7afa610a4572b6513c45cfb (diff)
downloadqt-creator-2fab4ba8ad56f229cf3a41975bb5be9b39c949fd.tar.gz
GLSL AST nodes for function and struct decls
Diffstat (limited to 'src/libs/glsl/glslparser.h')
-rw-r--r--src/libs/glsl/glslparser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/glsl/glslparser.h b/src/libs/glsl/glslparser.h
index 1e93ba50e7..772a96ae5a 100644
--- a/src/libs/glsl/glslparser.h
+++ b/src/libs/glsl/glslparser.h
@@ -83,7 +83,8 @@ public:
Type *type;
const std::string *name;
} param_declarator;
- // ### ast nodes...
+ ParameterDeclaration *param_declaration;
+ FunctionDeclaration *function_declaration;
};
Parser(Engine *engine, const char *source, unsigned size, int variant);
@@ -99,6 +100,7 @@ private:
Expression *&expression(int n) { return _symStack[_tos + n - 1].expression; }
Statement *&statement(int n) { return _symStack[_tos + n - 1].statement; }
Type *&type(int n) { return _symStack[_tos + n - 1].type; }
+ FunctionDeclaration *&function(int n) { return _symStack[_tos + n - 1].function_declaration; }
inline int consumeToken() { return _index++; }
inline const Token &tokenAt(int index) const { return _tokens.at(index); }