本文整理汇总了C++中statik::PLUS方法的典型用法代码示例。如果您正苦于以下问题:C++ statik::PLUS方法的具体用法?C++ statik::PLUS怎么用?C++ statik::PLUS使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类statik
的用法示例。
在下文中一共展示了statik::PLUS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: while
//.........这里部分代码省略.........
identifier_list_1->AddChild(META(",", ","));
identifier_list_1->AddChildRecursive(identifier_REC);
auto_ptr<Rule> identifier_list_(SEQ("identifier-list")); // direct_declarator_suffix_3
identifier_list_->AddChildRecursive(identifier_REC);
Rule* identifier_list_1_STAR = identifier_list_->AddChild(STAR("identifier-list-1-STAR"));
identifier_list_1_STAR->AddChild(identifier_list_1);
auto_ptr<Rule> parameter_declaration_1(OR("parameter-declaration-1")); // parameter_declaration_
auto_ptr<Rule> parameter_declaration_(SEQ("parameter-declaration")); // parameter_list_1
auto_ptr<Rule> parameter_list_1(SEQ("parameter-list-1")); // parameter_list_
parameter_list_1->AddChild(META(",", ","));
Rule* parameter_declaration_REC = parameter_list_1->AddChild(parameter_declaration_);
auto_ptr<Rule> parameter_list_(SEQ("parameter-list")); // parameter_type_list_
parameter_list_->CapOutput("parameter-list");
parameter_list_->AddChildRecursive(parameter_declaration_REC);
Rule* parameter_list_1_STAR = parameter_list_->AddChild(STAR("parameter-list-1-STAR"));
parameter_list_1_STAR->AddChild(parameter_list_1);
auto_ptr<Rule> parameter_type_list_1(SEQ("parameter-type-list-1")); // parameter_type_list_
parameter_type_list_1->AddChild(META(",", ","));
parameter_type_list_1->AddChild(META("...", "..."));
auto_ptr<Rule> parameter_type_list_(SEQ("parameter-type-list")); // direct_declarator_suffix_
parameter_type_list_->AddChild(parameter_list_);
Rule* parameter_type_list_1_OPT = parameter_type_list_->AddChild(OPT("parameter-type-list-1-OPT"));
parameter_type_list_1_OPT->AddChild(parameter_type_list_1);
auto_ptr<Rule> pointer_1(SEQ("pointer-1")); // pointer_
auto_ptr<Rule> pointer_(PLUS("pointer")); // declarator_
pointer_->CapOutput("pointer");
Rule* pointer_1_REC = pointer_->AddChild(pointer_1);
auto_ptr<Rule> direct_declarator_suffix_3(SEQ("direct-declarator-suffix-3")); // direct_declarator_suffix_
direct_declarator_suffix_3->AddChild(META("(", "("));
Rule* identifier_list_OPT = direct_declarator_suffix_3->AddChild(OPT("identifier-list-OPT"));
identifier_list_OPT->AddChild(identifier_list_);
direct_declarator_suffix_3->AddChild(META(")", ")"));
auto_ptr<Rule> direct_declarator_suffix_2(SEQ("direct-declarator-suffix-2")); // direct_declarator_suffix_
direct_declarator_suffix_2->AddChild(META("(", "("));
Rule* parameter_type_list_REC = direct_declarator_suffix_2->AddChild(parameter_type_list_);
direct_declarator_suffix_2->AddChild(META(")", ")"));
auto_ptr<Rule> direct_declarator_suffix_1(SEQ("direct-declarator-suffix-1")); // direct_declarator_suffix_
direct_declarator_suffix_1->AddChild(META("[", "["));
Rule* constant_expression_REC = direct_declarator_suffix_1->AddChild(constant_expression_);
direct_declarator_suffix_1->AddChild(META("]", "]"));
auto_ptr<Rule> direct_declarator_suffix_(OR("direct-declarator-suffix")); // direct_declarator_2
direct_declarator_suffix_->AddChild(direct_declarator_suffix_1);
direct_declarator_suffix_->AddChild(direct_declarator_suffix_2);
direct_declarator_suffix_->AddChild(direct_declarator_suffix_3);
auto_ptr<Rule> direct_declarator_2(SEQ("direct-declarator-2")); // direct_declarator_
auto_ptr<Rule> direct_declarator_1(SEQ("direct-declarator-1")); // direct_declarator_
auto_ptr<Rule> direct_declarator_(OR("direct-declarator")); // declarator_
Rule* direct_declarator_1_REC = direct_declarator_->AddChild(direct_declarator_1);
Rule* direct_declarator_2_REC = direct_declarator_->AddChild(direct_declarator_2);