Aleksey Kladov
2bf81922f7
internal: more reasonable grammar for blocks
...
Consider these expples
{ 92 }
async { 92 }
'a: { 92 }
#[a] { 92 }
Previously the tree for them were
BLOCK_EXPR
{ ... }
EFFECT_EXPR
async
BLOCK_EXPR
{ ... }
EFFECT_EXPR
'a:
BLOCK_EXPR
{ ... }
BLOCK_EXPR
#[a]
{ ... }
As you see, it gets progressively worse :) The last two items are
especially odd. The last one even violates the balanced curleys
invariant we have (#10357 ) The new approach is to say that the stuff in
`{}` is stmt_list, and the block is stmt_list + optional modifiers
BLOCK_EXPR
STMT_LIST
{ ... }
BLOCK_EXPR
async
STMT_LIST
{ ... }
BLOCK_EXPR
'a:
STMT_LIST
{ ... }
BLOCK_EXPR
#[a]
STMT_LIST
{ ... }
2021-09-26 19:16:09 +03:00
..
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-06-11 18:34:30 +02:00
2020-08-12 18:30:53 +02:00
2021-01-15 22:18:43 +01:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2021-09-17 21:53:24 +03:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2021-06-15 16:54:43 +03:00
2021-09-26 19:16:09 +03:00
2021-09-17 22:21:57 +03:00
2021-01-15 19:21:23 +01:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-06-17 18:09:44 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2021-06-17 18:09:44 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2021-09-18 01:02:43 +03:00
2021-09-18 01:02:43 +03:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2020-11-12 12:09:12 +01:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2021-04-19 17:11:49 +03:00
2021-06-11 18:34:30 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-06-11 18:34:30 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-06-11 18:34:30 +02:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-08-12 18:30:53 +02:00
2021-09-26 19:16:09 +03:00
2020-11-22 20:44:56 -08:00
2021-09-26 19:16:09 +03:00
2020-10-06 23:52:00 +02:00
2021-09-26 19:16:09 +03:00
2021-09-25 22:19:27 +03:00
2021-09-26 19:16:09 +03:00
2021-09-25 22:19:27 +03:00