X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fparser.h;h=c98867a3791e866ecd31a9c7cc5076e7443482cf;hb=3a1fe833ea04df75449706f1d773f6e65521a392;hp=bce9698f7d608a4b3c18417bf2eef1d149f54a81;hpb=9ec831710f64a62ad5f2e896a55ae82a3519f29e;p=libs%2Fgl.git diff --git a/source/glsl/parser.h b/source/glsl/parser.h index bce9698f..c98867a3 100644 --- a/source/glsl/parser.h +++ b/source/glsl/parser.h @@ -50,7 +50,6 @@ private: static bool is_interpolation_qualifier(const std::string &); static bool is_precision_qualifier(const std::string &); static bool is_qualifier(const std::string &); - static bool is_builtin_type(const std::string &); bool is_type(const std::string &); bool is_identifier(const std::string &); @@ -60,18 +59,25 @@ private: void preprocess_pragma_msp(); void preprocess_stage(); - RefPtr parse_global_declaration(); + template + RefPtr create_node(); template RefPtr parse_with_recovery(RefPtr (Parser::*)()); + RefPtr parse_global_declaration(); RefPtr parse_statement(); RefPtr parse_import(); RefPtr parse_precision(); RefPtr parse_layout(); template void parse_block(Block &, bool, RefPtr (Parser::*)()); - RefPtr parse_expression(unsigned = 0); - RefPtr parse_binary(const RefPtr &, const Operator *); + RefPtr parse_expression(const Operator * = 0); + RefPtr parse_literal(); + RefPtr parse_binary(const RefPtr &, const Operator &); + RefPtr parse_ternary(const RefPtr &, const Operator &); RefPtr parse_function_call(const VariableReference &); + RefPtr parse_type_declaration(); + RefPtr parse_basic_type_declaration(); + RefPtr parse_image_type_declaration(); RefPtr parse_struct_declaration(); RefPtr parse_variable_declaration(); RefPtr parse_variable_declaration_with_layout();