| 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 |