diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-09-11 14:55:22 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-09-11 14:55:22 +0800 |
| commit | dfd4e3b2b2abc0137d26ed3df303a398741bb6a0 (patch) | |
| tree | 59a1690ad02d56d3f303f6ac1dea9e5d6cdc8f20 /src/MoonP/moon_ast.h | |
| parent | eba73a696c65932534fd5aefbe2ca4c7260c0fb6 (diff) | |
| download | yuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.tar.gz yuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.tar.bz2 yuescript-dfd4e3b2b2abc0137d26ed3df303a398741bb6a0.zip | |
add implicit objects support while writing tables.
Diffstat (limited to 'src/MoonP/moon_ast.h')
| -rw-r--r-- | src/MoonP/moon_ast.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/MoonP/moon_ast.h b/src/MoonP/moon_ast.h index 91d7614..16f7801 100644 --- a/src/MoonP/moon_ast.h +++ b/src/MoonP/moon_ast.h | |||
| @@ -527,9 +527,15 @@ AST_NODE(TableLit) | |||
| 527 | AST_MEMBER(TableLit, &sep, &values) | 527 | AST_MEMBER(TableLit, &sep, &values) |
| 528 | AST_END(TableLit) | 528 | AST_END(TableLit) |
| 529 | 529 | ||
| 530 | AST_NODE(TableBlockIndent) | ||
| 531 | ast_ptr<true, Seperator_t> sep; | ||
| 532 | ast_sel_list<false, variable_pair_t, normal_pair_t, TableBlockIndent_t> values; | ||
| 533 | AST_MEMBER(TableBlockIndent, &sep, &values) | ||
| 534 | AST_END(TableBlockIndent) | ||
| 535 | |||
| 530 | AST_NODE(TableBlock) | 536 | AST_NODE(TableBlock) |
| 531 | ast_ptr<true, Seperator_t> sep; | 537 | ast_ptr<true, Seperator_t> sep; |
| 532 | ast_sel_list<false, variable_pair_t, normal_pair_t> values; | 538 | ast_sel_list<false, variable_pair_t, normal_pair_t, TableBlockIndent_t> values; |
| 533 | AST_MEMBER(TableBlock, &sep, &values) | 539 | AST_MEMBER(TableBlock, &sep, &values) |
| 534 | AST_END(TableBlock) | 540 | AST_END(TableBlock) |
| 535 | 541 | ||
