Branch: Tag:

2016-01-09

2016-01-09 13:16:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Added some explanatory notes.

Explain the difference between push_compiler_frame0 and
push_compiler_frame1.

691:    }    ;    + /* This variant is used to push the compiler context for functions +  * with a declared return type, which has been stored in +  * +  * compiler_frame->current_type +  * +  * (eg via type_or_error). +  */   push_compiler_frame0: /* empty */    {    push_compiler_frame(SCOPE_LOCAL);
2106:      continue: TOK_CONTINUE optional_label { $$=mknode(F_CONTINUE,$2,0); } ;    + /* This variant is used to push the compiler context for +  * functions without a declared return type (ie lambdas). +  */   push_compiler_frame1: /* empty */    {    push_compiler_frame(SCOPE_LOCAL);