]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.h
Make the GLSL parser resilient against common errors
[libs/gl.git] / source / glsl / debug.h
index 5bc7a8bf884fbb09700b72490890e08ffc6b36ba..87ec4734e0b1bda18e4513a481688bbfee693fc0 100644 (file)
@@ -8,6 +8,8 @@ namespace Msp {
 namespace GL {
 namespace SL {
 
+/** Creates a textual representation of the syntax tree.  The result is encoded
+as UTF-8. */
 class DumpTree: private TraversingVisitor
 {
 private:
@@ -42,6 +44,7 @@ private:
        virtual void visit(Literal &);
        virtual void visit(ParenthesizedExpression &);
        virtual void visit(VariableReference &);
+       virtual void visit(InterfaceBlockReference &);
        virtual void visit(MemberAccess &);
        virtual void visit(UnaryExpression &);
        virtual void visit(BinaryExpression &);
@@ -61,7 +64,6 @@ private:
        virtual void visit(Passthrough &);
        virtual void visit(Return &);
        virtual void visit(Jump &);
-       using TraversingVisitor::visit;
 };
 
 } // namespace SL