|
Blender V5.3
|
Classes | |
| struct | NodeScope |
Public Types | |
| using | Token = blender::gpu::shader::parser::Token |
| using | NodeType = ast::NodeType |
| using | Nodes = ast::Nodes |
| using | Node = ast::NodeData |
| using | TokenID = ast::TokenID |
| using | NodeID = ast::NodeID |
Public Member Functions | |
| void | push_node (NodeType type) |
| void | pop_node () |
| BSLParser (ParserBase &parser, Token tok, ErrorHandler &error_handler) | |
| void | translation_unit () |
| void | external_decl () |
| void | preprocessor_directive () |
| void | namespace_decl () |
| bool | struct_decl (bool expect_template_params=false, bool expect_body=true) |
| void | members_decl () |
| void | pipeline_or_func_or_var_decl () |
| bool | pipeline_decl () |
| void | struct_decl_or_var_decl (bool is_member=false) |
| void | func_or_var_decl (bool is_member=false) |
| bool | var_decl (bool is_member=false, bool expect_semicolon=true) |
| void | declarator (bool optional_id_name=true, bool optional_bitfield=false) |
| void | bitfield_optional () |
| bool | func_decl (bool expect_template_params=false, bool expect_body=true) |
| void | enum_decl () |
| void | enum_values () |
| void | assignment_optional () |
| void | assignment () |
| void | init_expression_or_initializer_list () |
| void | initializer_list () |
| void | function_argument_list () |
| void | function_parameter_list () |
| void | template_decl_or_spec_or_inst () |
| void | template_instantiation () |
| void | template_specialization () |
| void | template_declaration () |
| void | templated_declaration (bool expect_template_params, bool expect_body) |
| void | template_argument_list () |
| bool | template_parameter_list_optional () |
| void | template_parameter_list () |
| void | numerical_constant () |
| void | expression (bool break_on_comma=false, bool break_on_equal=false) |
| void | function_call_or_id_or_initializer () |
| void | local_scope (bool optional_brackets=false) |
| void | local_statement (bool expect_semicolon=true) |
| void | structured_bindings () |
| void | using_statement () |
| void | array_optional () |
| void | subscript () |
| void | attribute_optional () |
| void | attribute () |
| void | union_decl () |
| void | if_statement () |
| void | switch_statement () |
| void | for_loop () |
| void | while_loop () |
| void | do_while_loop () |
| void | condition (int arg_needed) |
| void | unqualified_id_optional () |
| void | unqualified_id () |
| bool | qualified_id_optional () |
| void | qualified_id (bool must_end_with_template_arg=false) |
Public Attributes | |
| Token | curr |
| ParserBase & | parser |
| Nodes | nodes |
| NodeID | curr_node = -1 |
| ErrorHandler & | error_handler |
Definition at line 26 of file bsl/grammar.cc.
| using bsl::BSLParser::Node = ast::NodeData |
Definition at line 30 of file bsl/grammar.cc.
| using bsl::BSLParser::NodeID = ast::NodeID |
Definition at line 32 of file bsl/grammar.cc.
| using bsl::BSLParser::Nodes = ast::Nodes |
Definition at line 29 of file bsl/grammar.cc.
Definition at line 28 of file bsl/grammar.cc.
Definition at line 27 of file bsl/grammar.cc.
| using bsl::BSLParser::TokenID = ast::TokenID |
Definition at line 31 of file bsl/grammar.cc.
|
inline |
Definition at line 69 of file bsl/grammar.cc.
References curr, error_handler, and parser.
Referenced by bsl::BSLParser::NodeScope::NodeScope().
|
inline |
Definition at line 986 of file bsl/grammar.cc.
References NODE, and subscript().
Referenced by declarator().
|
inline |
Definition at line 494 of file bsl/grammar.cc.
References init_expression_or_initializer_list(), and NODE.
Referenced by assignment_optional(), initializer_list(), and structured_bindings().
|
inline |
Definition at line 487 of file bsl/grammar.cc.
References assignment().
Referenced by declarator(), and enum_values().
|
inline |
Definition at line 1017 of file bsl/grammar.cc.
References attribute(), function_parameter_list(), NODE, lexit::SquareClose, unqualified_id(), and lexit::Word.
Referenced by attribute(), and attribute_optional().
|
inline |
Definition at line 1010 of file bsl/grammar.cc.
References attribute().
Referenced by condition(), enum_decl(), func_decl(), function_argument_list(), local_statement(), struct_decl(), and var_decl().
|
inline |
Definition at line 392 of file bsl/grammar.cc.
References lexit::Colon, expression(), and NODE.
Referenced by declarator().
|
inline |
Definition at line 1162 of file bsl/grammar.cc.
References attribute_optional(), curr, lexit::Token::is_valid(), local_statement(), and NODE.
Referenced by do_while_loop(), for_loop(), if_statement(), switch_statement(), and while_loop().
|
inline |
Definition at line 357 of file bsl/grammar.cc.
References array_optional(), assignment_optional(), bitfield_optional(), initializer_list(), NODE, qualified_id(), and qualified_id_optional().
Referenced by function_argument_list(), and var_decl().
|
inline |
Definition at line 1152 of file bsl/grammar.cc.
References condition(), lexit::Do, local_scope(), NODE, and lexit::While.
Referenced by local_scope().
|
inline |
Definition at line 439 of file bsl/grammar.cc.
References attribute_optional(), lexit::Class, lexit::Enum, enum_values(), NODE, qualified_id(), and qualified_id_optional().
Referenced by external_decl(), and struct_decl_or_var_decl().
|
inline |
Definition at line 461 of file bsl/grammar.cc.
References assignment_optional(), lexit::BracketClose, lexit::Hash, NODE, preprocessor_directive(), qualified_id(), and lexit::Word.
Referenced by enum_decl().
|
inline |
Definition at line 701 of file bsl/grammar.cc.
References lexit::Ampersand, lexit::Assign, lexit::AssignAdd, lexit::AssignDiv, lexit::AssignLShift, lexit::AssignMul, lexit::AssignRShift, lexit::AssignSub, lexit::BitwiseNot, lexit::BracketClose, lexit::BracketOpen, lexit::Colon, lexit::Comma, curr_node, lexit::Decrement, lexit::Divide, lexit::Dot, lexit::Equal, expression(), function_call_or_id_or_initializer(), function_parameter_list(), lexit::GEqual, lexit::GThan, lexit::Increment, initializer_list(), lexit::LEqual, lexit::LogicalAnd, lexit::LogicalOr, lexit::LShift, lexit::LThan, lexit::Minus, lexit::Modulo, lexit::Multiply, NODE, nodes, lexit::Not, lexit::NotEqual, lexit::Number, blender::gpu::shader::parser::ast::Op, lexit::Or, lexit::ParClose, lexit::ParOpen, lexit::Plus, qualified_id(), lexit::Question, lexit::RShift, lexit::SemiColon, lexit::SquareClose, lexit::SquareOpen, lexit::String, blender::gpu::shader::parser::ast::StringConst, lexit::Struct, subscript(), lexit::Template, lexit::TemplateClose, lexit::This, lexit::Word, and lexit::Xor.
Referenced by bitfield_optional(), expression(), function_parameter_list(), init_expression_or_initializer_list(), local_scope(), local_statement(), subscript(), and template_parameter_list().
|
inline |
Definition at line 88 of file bsl/grammar.cc.
References lexit::BracketClose, lexit::Class, lexit::Constexpr, lexit::EndOfFile, lexit::Enum, enum_decl(), lexit::Hash, lexit::Inline, namespace_decl(), pipeline_or_func_or_var_decl(), preprocessor_directive(), lexit::SquareOpen, lexit::Static, lexit::Struct, struct_decl_or_var_decl(), lexit::Template, template_decl_or_spec_or_inst(), lexit::Union, lexit::Using, using_statement(), and lexit::Word.
Referenced by namespace_decl(), and translation_unit().
|
inline |
Definition at line 1136 of file bsl/grammar.cc.
References condition(), lexit::For, local_scope(), and NODE.
Referenced by local_scope().
|
inline |
Definition at line 403 of file bsl/grammar.cc.
References attribute_optional(), curr_node, function_argument_list(), lexit::Inline, local_scope(), NODE, nodes, qualified_id(), and lexit::Static.
Referenced by func_or_var_decl(), and templated_declaration().
|
inline |
Definition at line 304 of file bsl/grammar.cc.
References func_decl(), state, and var_decl().
Referenced by members_decl(), and pipeline_or_func_or_var_decl().
|
inline |
Definition at line 549 of file bsl/grammar.cc.
References attribute_optional(), declarator(), NODE, and qualified_id().
Referenced by func_decl().
|
inline |
Definition at line 847 of file bsl/grammar.cc.
References lexit::BracketOpen, curr_node, function_parameter_list(), initializer_list(), NODE, nodes, lexit::ParOpen, and qualified_id().
Referenced by expression().
|
inline |
Definition at line 572 of file bsl/grammar.cc.
References expression(), and NODE.
Referenced by attribute(), expression(), function_call_or_id_or_initializer(), and pipeline_decl().
|
inline |
Definition at line 1062 of file bsl/grammar.cc.
References condition(), lexit::Constexpr, lexit::Else, lexit::If, local_scope(), NODE, and preprocessor_directive().
Referenced by local_scope().
|
inline |
Definition at line 501 of file bsl/grammar.cc.
References expression(), and initializer_list().
Referenced by assignment(), and initializer_list().
|
inline |
Definition at line 511 of file bsl/grammar.cc.
References assignment(), lexit::BracketClose, lexit::BracketOpen, lexit::Dot, init_expression_or_initializer_list(), lexit::Minus, NODE, lexit::Number, lexit::ParOpen, lexit::Plus, lexit::This, unqualified_id(), and lexit::Word.
Referenced by declarator(), expression(), function_call_or_id_or_initializer(), and init_expression_or_initializer_list().
|
inline |
Definition at line 865 of file bsl/grammar.cc.
References lexit::BracketClose, lexit::BracketOpen, lexit::Break, blender::gpu::shader::parser::ast::BreakStmt, lexit::Case, lexit::Continue, blender::gpu::shader::parser::ast::ContinueStmt, lexit::Default, lexit::Do, do_while_loop(), lexit::EndOfFile, expression(), lexit::For, for_loop(), lexit::Hash, lexit::If, if_statement(), local_scope(), local_statement(), NODE, preprocessor_directive(), lexit::Return, lexit::Switch, switch_statement(), lexit::Using, using_statement(), lexit::While, and while_loop().
Referenced by do_while_loop(), for_loop(), func_decl(), if_statement(), local_scope(), switch_statement(), and while_loop().
|
inline |
Definition at line 937 of file bsl/grammar.cc.
References attribute_optional(), curr, expression(), NODE, state, lexit::Token::str(), structured_bindings(), and var_decl().
Referenced by condition(), and local_scope().
|
inline |
Definition at line 214 of file bsl/grammar.cc.
References lexit::BracketClose, lexit::Class, lexit::Constexpr, lexit::Enum, func_or_var_decl(), lexit::Hash, NODE, preprocessor_directive(), lexit::Private, lexit::Public, lexit::SquareOpen, lexit::Static, lexit::Struct, struct_decl_or_var_decl(), lexit::Template, template_declaration(), lexit::Union, and lexit::Word.
Referenced by struct_decl(), and union_decl().
|
inline |
Definition at line 159 of file bsl/grammar.cc.
References external_decl(), NODE, and qualified_id().
Referenced by external_decl().
|
inline |
Definition at line 694 of file bsl/grammar.cc.
References lexit::Minus, NODE, and lexit::Number.
Referenced by switch_statement().
|
inline |
Definition at line 265 of file bsl/grammar.cc.
References curr, function_parameter_list(), NODE, qualified_id(), and lexit::Token::str().
Referenced by pipeline_or_func_or_var_decl().
|
inline |
Definition at line 253 of file bsl/grammar.cc.
References func_or_var_decl(), pipeline_decl(), and state.
Referenced by external_decl().
|
inline |
Definition at line 60 of file bsl/grammar.cc.
References blender::gpu::shader::metadata::assert, curr, curr_node, lexit::Token::index_, and nodes.
Referenced by bsl::BSLParser::NodeScope::~NodeScope().
|
inline |
Definition at line 131 of file bsl/grammar.cc.
References curr, lexit::EndOfFile, lexit::Token::index_, NODE, parser, and lexit::TokenBuffer::types_.
Referenced by enum_values(), external_decl(), if_statement(), local_scope(), members_decl(), and switch_statement().
|
inline |
Definition at line 53 of file bsl/grammar.cc.
References curr, curr_node, and nodes.
Referenced by bsl::BSLParser::NodeScope::NodeScope().
|
inline |
Definition at line 1202 of file bsl/grammar.cc.
References blender::gpu::shader::parser::ast::NamespaceSeparator, NODE, template_parameter_list_optional(), and unqualified_id().
Referenced by declarator(), enum_decl(), enum_values(), expression(), func_decl(), function_argument_list(), function_call_or_id_or_initializer(), namespace_decl(), pipeline_decl(), qualified_id_optional(), struct_decl(), switch_statement(), template_argument_list(), using_statement(), and var_decl().
|
inline |
Definition at line 1192 of file bsl/grammar.cc.
References qualified_id(), and lexit::Word.
Referenced by declarator(), and enum_decl().
|
inline |
Definition at line 173 of file bsl/grammar.cc.
References attribute_optional(), lexit::Class, curr, lexit::Token::is_valid(), members_decl(), lexit::Token::next(), NODE, qualified_id(), lexit::Struct, lexit::Union, and lexit::Word.
Referenced by struct_decl_or_var_decl(), and templated_declaration().
|
inline |
Definition at line 287 of file bsl/grammar.cc.
References lexit::Enum, enum_decl(), state, struct_decl(), and var_decl().
Referenced by external_decl(), and members_decl().
|
inline |
Definition at line 961 of file bsl/grammar.cc.
References assignment(), NODE, unqualified_id(), and lexit::Word.
Referenced by local_statement().
|
inline |
Definition at line 996 of file bsl/grammar.cc.
References expression(), and NODE.
Referenced by array_optional(), and expression().
|
inline |
Definition at line 1095 of file bsl/grammar.cc.
References lexit::BracketClose, lexit::Case, lexit::Colon, condition(), lexit::Default, lexit::Hash, local_scope(), lexit::Minus, NODE, lexit::Number, numerical_constant(), preprocessor_directive(), qualified_id(), and lexit::Switch.
Referenced by local_scope().
|
inline |
Definition at line 631 of file bsl/grammar.cc.
References lexit::Class, lexit::Enum, NODE, qualified_id(), lexit::Struct, lexit::TemplateClose, lexit::TemplateOpen, lexit::Typename, and lexit::Word.
Referenced by template_declaration(), and template_specialization().
|
inline |
Definition at line 585 of file bsl/grammar.cc.
References template_declaration(), template_instantiation(), template_specialization(), lexit::TemplateClose, and lexit::TemplateOpen.
Referenced by external_decl().
|
inline |
Definition at line 613 of file bsl/grammar.cc.
References NODE, lexit::Template, template_argument_list(), and templated_declaration().
Referenced by members_decl(), and template_decl_or_spec_or_inst().
|
inline |
Definition at line 598 of file bsl/grammar.cc.
References NODE, lexit::Template, and templated_declaration().
Referenced by template_decl_or_spec_or_inst().
|
inline |
Definition at line 681 of file bsl/grammar.cc.
References expression(), NODE, lexit::TemplateClose, and lexit::TemplateOpen.
Referenced by template_parameter_list_optional().
|
inline |
Definition at line 672 of file bsl/grammar.cc.
References template_parameter_list(), and lexit::TemplateOpen.
Referenced by qualified_id().
|
inline |
Definition at line 605 of file bsl/grammar.cc.
References NODE, lexit::Template, template_argument_list(), and templated_declaration().
Referenced by template_decl_or_spec_or_inst().
|
inline |
Definition at line 621 of file bsl/grammar.cc.
References lexit::Class, func_decl(), lexit::Struct, struct_decl(), and lexit::Union.
Referenced by template_declaration(), template_instantiation(), and template_specialization().
|
inline |
Definition at line 76 of file bsl/grammar.cc.
References lexit::EndOfFile, external_decl(), lexit::NewLine, NODE, and lexit::Space.
Referenced by blender::gpu::shader::parser::ParserBase::parse_bsl().
|
inline |
Definition at line 1052 of file bsl/grammar.cc.
References members_decl(), NODE, and lexit::Union.
|
inline |
Definition at line 1186 of file bsl/grammar.cc.
References NODE, and lexit::Word.
Referenced by attribute(), initializer_list(), qualified_id(), structured_bindings(), and unqualified_id_optional().
|
inline |
Definition at line 1178 of file bsl/grammar.cc.
References unqualified_id(), and lexit::Word.
|
inline |
Definition at line 974 of file bsl/grammar.cc.
References lexit::Assign, NODE, qualified_id(), and lexit::Using.
Referenced by external_decl(), and local_scope().
|
inline |
Definition at line 316 of file bsl/grammar.cc.
References attribute_optional(), lexit::Class, lexit::Constexpr, curr, declarator(), lexit::Enum, NODE, qualified_id(), lexit::Static, lexit::Token::str(), lexit::Struct, and lexit::Word.
Referenced by func_or_var_decl(), local_statement(), and struct_decl_or_var_decl().
|
inline |
Definition at line 1144 of file bsl/grammar.cc.
References condition(), local_scope(), NODE, and lexit::While.
Referenced by local_scope().
| Token bsl::BSLParser::curr |
Definition at line 34 of file bsl/grammar.cc.
Referenced by BSLParser(), condition(), local_statement(), pipeline_decl(), pop_node(), preprocessor_directive(), push_node(), struct_decl(), and var_decl().
| NodeID bsl::BSLParser::curr_node = -1 |
Definition at line 39 of file bsl/grammar.cc.
Referenced by expression(), func_decl(), function_call_or_id_or_initializer(), pop_node(), and push_node().
| ErrorHandler& bsl::BSLParser::error_handler |
Definition at line 67 of file bsl/grammar.cc.
Referenced by BSLParser().
| Nodes bsl::BSLParser::nodes |
Definition at line 38 of file bsl/grammar.cc.
Referenced by expression(), func_decl(), function_call_or_id_or_initializer(), blender::gpu::shader::parser::ParserBase::parse_bsl(), pop_node(), and push_node().
| ParserBase& bsl::BSLParser::parser |
Definition at line 36 of file bsl/grammar.cc.
Referenced by BSLParser(), and preprocessor_directive().