X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fsyntax.h;h=2c832c149e2467ba346867eb453cc8850b7a11a6;hb=caa84a9d8adce6dc702f6e0ae32961b77a0a73ea;hp=0379a91146c17c3cbb02680717bea4036bcfb83b;hpb=d80750e7c20ea061f210b756196cc844b762b852;p=libs%2Fgl.git diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index 0379a911..2c832c14 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -7,6 +7,7 @@ #include #include #include +#include #include "features.h" #include "glsl_error.h" #include "sourcemap.h" @@ -101,7 +102,7 @@ template class NodeArray: public NodeContainer > > { }; -struct StructDeclaration; +struct TypeDeclaration; struct VariableDeclaration; struct InterfaceBlock; struct FunctionDeclaration; @@ -130,6 +131,9 @@ struct Expression: Node { const Operator *oper; + TypeDeclaration *type; + bool lvalue; + Expression(); virtual Expression *clone() const = 0; @@ -138,6 +142,7 @@ struct Expression: Node struct Literal: Expression { std::string token; + Variant value; virtual Literal *clone() const { return new Literal(*this); } virtual void visit(NodeVisitor &);