|
Blender V5.3
|
Public Types | |
| using | Node = Scope |
Public Member Functions | |
| ScopeParser (ParserBase &parser, Token tok, ErrorHandler &error_handler) | |
| void | translation_unit () |
| void | external_declaration () |
| void | struct_declaration () |
| void | members_decl () |
| void | enum_declaration () |
| void | enum_values () |
| void | union_declaration () |
| void | template_definition () |
| void | template_explicit_call () |
| void | template_argument_list () |
| void | function_definition () |
| void | assignment () |
| void | local_scope (ScopeType type) |
| void | switch_statement () |
| void | for_loop () |
| void | while_loop () |
| void | do_while_loop () |
| void | condition (int arg_needed, ScopeType type) |
| void | function_argument_list () |
| void | function_call_or_local_parenthesis () |
| void | local_parenthesis () |
| void | function_call () |
| void | attribute_or_subscript () |
| void | subscript () |
| void | attribute () |
| void | namespace_declaration () |
| void | qualified_id () |
| void | preprocessor () |
Public Attributes | |
| Token | curr |
| ParserBase & | parser |
| Node | curr_node = Node(parser) |
| ErrorHandler & | error_handler |
Definition at line 60 of file grammar.cc.
Definition at line 65 of file grammar.cc.
|
inline |
Definition at line 70 of file grammar.cc.
References curr, error_handler, and parser.
|
inline |
Definition at line 445 of file grammar.cc.
References lexit::Assign, blender::gpu::shader::parser::Assignment, assignment(), lexit::BracketClose, lexit::BracketOpen, lexit::Comma, curr, lexit::Default, EXPRESSION_TOKENS, function_call_or_local_parenthesis(), lexit::Hash, blender::gpu::shader::parser::Local, local_scope(), lexit::Number, lexit::ParClose, lexit::ParOpen, preprocessor(), lexit::Token::prev(), lexit::SemiColon, lexit::SquareOpen, lexit::String, subscript(), lexit::Template, template_argument_list(), template_explicit_call(), lexit::TemplateClose, lexit::TemplateOpen, lexit::This, lexit::Typename, and lexit::Word.
Referenced by assignment(), enum_values(), external_declaration(), function_argument_list(), local_scope(), members_decl(), and template_argument_list().
|
inline |
Definition at line 931 of file grammar.cc.
References blender::gpu::shader::parser::Attribute, attribute(), blender::gpu::shader::parser::Attributes, lexit::Comma, curr, function_call(), lexit::ParOpen, lexit::Token::prev(), lexit::SquareClose, blender::gpu::shader::parser::Subscript, and lexit::Word.
Referenced by attribute(), attribute_or_subscript(), condition(), enum_declaration(), and struct_declaration().
|
inline |
Definition at line 882 of file grammar.cc.
References attribute(), curr, lexit::Token::next(), and subscript().
Referenced by external_declaration(), function_argument_list(), local_scope(), and members_decl().
|
inline |
Definition at line 611 of file grammar.cc.
References lexit::Assign, attribute(), lexit::Comma, lexit::Constexpr, curr, EXPRESSION_TOKENS, function_call_or_local_parenthesis(), lexit::Hash, blender::gpu::shader::parser::LoopArg, blender::gpu::shader::parser::LoopArgs, lexit::Number, lexit::ParClose, lexit::ParOpen, preprocessor(), lexit::Token::prev(), lexit::SemiColon, lexit::SquareOpen, subscript(), lexit::This, and lexit::Word.
Referenced by do_while_loop(), for_loop(), local_scope(), switch_statement(), and while_loop().
|
inline |
Definition at line 603 of file grammar.cc.
References condition(), lexit::Do, local_scope(), blender::gpu::shader::parser::LoopArgs, blender::gpu::shader::parser::LoopBody, and lexit::While.
Referenced by local_scope().
|
inline |
Definition at line 277 of file grammar.cc.
References attribute(), lexit::Class, curr, lexit::Enum, enum_values(), blender::gpu::shader::parser::Local, and lexit::Word.
Referenced by external_declaration(), and members_decl().
|
inline |
Definition at line 300 of file grammar.cc.
References lexit::Assign, assignment(), lexit::BracketClose, lexit::Comma, lexit::Hash, local_parenthesis(), lexit::Number, lexit::ParOpen, preprocessor(), and lexit::Word.
Referenced by enum_declaration().
|
inline |
Definition at line 87 of file grammar.cc.
References lexit::Assign, assignment(), attribute_or_subscript(), lexit::BracketClose, lexit::BracketOpen, lexit::Class, lexit::Colon, lexit::Const, lexit::Constexpr, lexit::EndOfFile, lexit::Enum, enum_declaration(), function_definition(), lexit::Hash, lexit::Inline, blender::gpu::shader::parser::Local, local_scope(), lexit::Minus, lexit::Namespace, namespace_declaration(), lexit::NotEqual, lexit::ParOpen, preprocessor(), qualified_id(), lexit::SemiColon, lexit::SquareOpen, lexit::Static, lexit::Struct, struct_declaration(), lexit::Template, template_argument_list(), template_definition(), lexit::TemplateOpen, lexit::Typename, lexit::Union, lexit::Using, and lexit::Word.
Referenced by namespace_declaration(), and translation_unit().
|
inline |
Definition at line 589 of file grammar.cc.
References condition(), lexit::For, local_scope(), blender::gpu::shader::parser::LoopArgs, and blender::gpu::shader::parser::LoopBody.
Referenced by local_scope().
|
inline |
Definition at line 691 of file grammar.cc.
References lexit::Assign, assignment(), attribute_or_subscript(), lexit::BracketOpen, lexit::Comma, lexit::Const, lexit::Constexpr, curr, EXPRESSION_TOKENS, function_call_or_local_parenthesis(), blender::gpu::shader::parser::FunctionArg, blender::gpu::shader::parser::FunctionArgs, lexit::Hash, blender::gpu::shader::parser::Local, local_scope(), lexit::Number, lexit::ParClose, lexit::ParOpen, preprocessor(), lexit::Token::prev(), lexit::SquareOpen, lexit::String, template_argument_list(), lexit::TemplateOpen, and lexit::Word.
Referenced by function_definition().
|
inline |
Definition at line 818 of file grammar.cc.
References lexit::Assign, lexit::BracketOpen, lexit::Comma, curr, EXPRESSION_TOKENS, function_call_or_local_parenthesis(), blender::gpu::shader::parser::FunctionCall, blender::gpu::shader::parser::FunctionParam, lexit::Hash, blender::gpu::shader::parser::Local, local_scope(), lexit::Number, lexit::ParClose, lexit::ParOpen, preprocessor(), lexit::Token::prev(), lexit::SquareOpen, lexit::String, subscript(), lexit::Template, template_argument_list(), template_explicit_call(), lexit::TemplateOpen, lexit::This, and lexit::Word.
Referenced by attribute(), and function_call_or_local_parenthesis().
|
inline |
Definition at line 771 of file grammar.cc.
References curr, function_call(), local_parenthesis(), lexit::Token::prev(), lexit::TemplateClose, lexit::Token::type(), and lexit::Word.
Referenced by assignment(), condition(), function_argument_list(), function_call(), local_parenthesis(), local_scope(), and subscript().
|
inline |
Definition at line 429 of file grammar.cc.
References lexit::Const, blender::gpu::shader::parser::Function, function_argument_list(), and local_scope().
Referenced by external_declaration(), and members_decl().
|
inline |
Definition at line 782 of file grammar.cc.
References lexit::Assign, lexit::Comma, curr, EXPRESSION_TOKENS, function_call_or_local_parenthesis(), lexit::Hash, blender::gpu::shader::parser::Local, lexit::Number, lexit::ParClose, lexit::ParOpen, preprocessor(), lexit::SquareOpen, lexit::String, subscript(), lexit::This, and lexit::Word.
Referenced by enum_values(), and function_call_or_local_parenthesis().
|
inline |
Definition at line 497 of file grammar.cc.
References lexit::Assign, assignment(), attribute_or_subscript(), lexit::BracketClose, lexit::BracketOpen, lexit::Break, lexit::Case, lexit::Comma, condition(), lexit::Const, lexit::Constexpr, lexit::Continue, curr, lexit::Default, lexit::Do, do_while_loop(), lexit::Else, EXPRESSION_TOKENS, lexit::For, for_loop(), function_call_or_local_parenthesis(), lexit::Hash, lexit::If, blender::gpu::shader::parser::Local, local_scope(), lexit::Namespace, lexit::Number, lexit::ParOpen, preprocessor(), qualified_id(), lexit::Return, lexit::SemiColon, lexit::SquareOpen, lexit::Static, lexit::String, lexit::Switch, switch_statement(), lexit::Template, template_argument_list(), template_explicit_call(), lexit::TemplateOpen, lexit::This, lexit::Typename, lexit::Using, lexit::While, while_loop(), and lexit::Word.
Referenced by assignment(), do_while_loop(), external_declaration(), for_loop(), function_argument_list(), function_call(), function_definition(), local_scope(), switch_statement(), and while_loop().
|
inline |
Definition at line 196 of file grammar.cc.
References lexit::Ampersand, lexit::Assign, assignment(), attribute_or_subscript(), lexit::BracketClose, lexit::Class, lexit::Colon, lexit::Comma, lexit::Const, lexit::Constexpr, curr, lexit::Default, lexit::Divide, lexit::Enum, enum_declaration(), lexit::Equal, function_definition(), lexit::Hash, lexit::Inline, lexit::Minus, lexit::Namespace, lexit::Token::next(), lexit::Number, lexit::ParOpen, lexit::Plus, preprocessor(), lexit::Private, lexit::Public, lexit::SemiColon, lexit::SquareOpen, lexit::Star, lexit::Static, lexit::Struct, struct_declaration(), lexit::Template, template_argument_list(), template_definition(), lexit::TemplateOpen, lexit::Typename, lexit::Union, union_declaration(), lexit::Using, and lexit::Word.
Referenced by struct_declaration(), and union_declaration().
|
inline |
Definition at line 980 of file grammar.cc.
References curr, external_declaration(), blender::gpu::shader::parser::Namespace, lexit::Namespace, and qualified_id().
Referenced by external_declaration().
|
inline |
Definition at line 1003 of file grammar.cc.
References curr, lexit::EndOfFile, lexit::Token::index_, parser, blender::gpu::shader::parser::Preprocessor, and lexit::TokenBuffer::types_.
Referenced by assignment(), condition(), enum_values(), external_declaration(), function_argument_list(), function_call(), local_parenthesis(), local_scope(), members_decl(), subscript(), and template_argument_list().
|
inline |
Definition at line 992 of file grammar.cc.
References lexit::Word.
Referenced by external_declaration(), local_scope(), namespace_declaration(), and struct_declaration().
|
inline |
Definition at line 152 of file grammar.cc.
References attribute(), lexit::Class, curr, members_decl(), qualified_id(), blender::gpu::shader::parser::Struct, lexit::Struct, template_argument_list(), lexit::TemplateOpen, lexit::Union, and lexit::Word.
Referenced by external_declaration(), and members_decl().
|
inline |
Definition at line 892 of file grammar.cc.
References lexit::Assign, lexit::Comma, curr, EXPRESSION_TOKENS, function_call_or_local_parenthesis(), lexit::Hash, lexit::Number, lexit::ParOpen, preprocessor(), lexit::SquareClose, lexit::SquareOpen, blender::gpu::shader::parser::Subscript, subscript(), lexit::This, and lexit::Word.
Referenced by assignment(), attribute_or_subscript(), condition(), function_call(), local_parenthesis(), and subscript().
|
inline |
Definition at line 582 of file grammar.cc.
References condition(), local_scope(), lexit::Switch, blender::gpu::shader::parser::SwitchArg, and blender::gpu::shader::parser::SwitchBody.
Referenced by local_scope().
|
inline |
Definition at line 360 of file grammar.cc.
References lexit::Assign, assignment(), lexit::Class, lexit::Colon, lexit::Comma, lexit::Const, curr, lexit::Divide, lexit::Enum, lexit::Equal, lexit::GEqual, lexit::GThan, lexit::Hash, lexit::LEqual, lexit::LThan, lexit::Minus, lexit::Modulo, lexit::Number, lexit::Plus, preprocessor(), lexit::Token::prev(), lexit::Star, lexit::Struct, blender::gpu::shader::parser::Template, template_argument_list(), blender::gpu::shader::parser::TemplateArg, lexit::TemplateClose, lexit::TemplateOpen, lexit::Typename, and lexit::Word.
Referenced by assignment(), external_declaration(), function_argument_list(), function_call(), local_scope(), members_decl(), struct_declaration(), template_argument_list(), and template_definition().
|
inline |
Definition at line 338 of file grammar.cc.
References lexit::Struct, lexit::Template, template_argument_list(), and lexit::Word.
Referenced by external_declaration(), and members_decl().
|
inline |
Definition at line 349 of file grammar.cc.
References curr, lexit::Token::prev(), and lexit::Template.
Referenced by assignment(), function_call(), and local_scope().
|
inline |
Definition at line 75 of file grammar.cc.
References lexit::TokenBuffer::back(), curr, lexit::EndOfFile, external_declaration(), blender::gpu::shader::parser::Global, lexit::NewLine, parser, and lexit::Space.
Referenced by blender::gpu::shader::parser::ParserBase::build_scope_tree().
|
inline |
Definition at line 328 of file grammar.cc.
References curr, blender::gpu::shader::parser::Local, members_decl(), and lexit::Union.
Referenced by members_decl().
|
inline |
Definition at line 596 of file grammar.cc.
References condition(), local_scope(), blender::gpu::shader::parser::LoopArgs, blender::gpu::shader::parser::LoopBody, and lexit::While.
Referenced by local_scope().
| Token blender::gpu::shader::parser::ScopeParser::curr |
Definition at line 61 of file grammar.cc.
Referenced by assignment(), attribute(), attribute_or_subscript(), condition(), enum_declaration(), function_argument_list(), function_call(), function_call_or_local_parenthesis(), local_parenthesis(), local_scope(), members_decl(), namespace_declaration(), preprocessor(), ScopeParser(), struct_declaration(), subscript(), template_argument_list(), template_explicit_call(), translation_unit(), and union_declaration().
Definition at line 66 of file grammar.cc.
| ErrorHandler& blender::gpu::shader::parser::ScopeParser::error_handler |
Definition at line 68 of file grammar.cc.
Referenced by ScopeParser().
| ParserBase& blender::gpu::shader::parser::ScopeParser::parser |
Definition at line 63 of file grammar.cc.
Referenced by preprocessor(), ScopeParser(), and translation_unit().