%%
script: statements {
- parser->statements = $1;
+ parser->script->statements = $1;
}
statements: statement {
| words TOKEN_EOL {
$$ = create_statement_simple(parser, $1);
}
- | '{' statements '}' { $$ = NULL; }
+ | '{' statements '}' {
+ $$ = create_statement_block(parser, $2);
+ }
| "if" TOKEN_DELIM statement
"then" TOKEN_EOL
statements