MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / parser_newlist

Function parser_newlist

Src/Base/Parser/AMReX_Parser_Y.cpp:190–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190struct parser_node*
191parser_newlist (struct parser_node* nl, struct parser_node* nr)
192{
193 if (nr == nullptr) {
194 return nl;
195 } else {
196 parser_workspace.ptrs.push_back(std::malloc(sizeof(struct parser_node)));
197 auto *r = (struct parser_node*) parser_workspace.ptrs.back();
198 r->type = PARSER_LIST;
199 r->l = nl;
200 r->r = nr;
201 return r;
202 }
203}
204
205namespace {
206struct parser_node* parser_get_rightmost_operand (struct parser_node* node)

Callers 1

yyparseFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected