MCPcopy Create free account
hub / github.com/boostorg/spirit / start

Method start

example/qi/compiler_tutorial/calc8/compiler.cpp:367–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365 }
366
367 bool compiler::start(ast::statement_list const& x) const
368 {
369 program.clear();
370 // op_stk_adj 0 for now. we'll know how many variables we'll have later
371 program.op(op_stk_adj, 0);
372
373 if (!(*this)(x))
374 {
375 program.clear();
376 return false;
377 }
378 program[1] = program.nvars(); // now store the actual number of variables
379 return true;
380 }
381}}
382

Callers 1

mainFunction · 0.45

Calls 3

clearMethod · 0.45
opMethod · 0.45
nvarsMethod · 0.45

Tested by

no test coverage detected