]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.h
Implement the ternary operator in GLSL
[libs/gl.git] / source / glsl / parser.h
index 13ec0ab9a1f8de2f0acdd279e3a4bef1ed35403e..c98867a3791e866ecd31a9c7cc5076e7443482cf 100644 (file)
@@ -70,9 +70,10 @@ private:
        RefPtr<Layout> parse_layout();
        template<typename T>
        void parse_block(Block &, bool, RefPtr<T> (Parser::*)());
-       RefPtr<Expression> parse_expression(unsigned = 0);
+       RefPtr<Expression> parse_expression(const Operator * = 0);
        RefPtr<Literal> parse_literal();
        RefPtr<BinaryExpression> parse_binary(const RefPtr<Expression> &, const Operator &);
+       RefPtr<TernaryExpression> parse_ternary(const RefPtr<Expression> &, const Operator &);
        RefPtr<FunctionCall> parse_function_call(const VariableReference &);
        RefPtr<TypeDeclaration> parse_type_declaration();
        RefPtr<BasicTypeDeclaration> parse_basic_type_declaration();