From c2effad8633bab4d11c7297089e52c2848a835da Mon Sep 17 00:00:00 2001 From: serr Date: Tue, 13 May 2025 19:20:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=D1=82=20=D0=B2=D0=BE=D0=B7=D0=BC?= =?UTF-8?q?=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D0=B8=20=D0=B2=D0=BD=D0=B5?= =?UTF-8?q?=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B9=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B7=D0=B4=D0=B0=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BB=D0=B5=D0=BA?= =?UTF-8?q?=D1=81.=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8=20=D0=B8=20=D0=B2=D1=8B?= =?UTF-8?q?=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- analyzers/test/test.y | 4 ++-- tests/test_blocks.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/analyzers/test/test.y b/analyzers/test/test.y index 054b543..66acf13 100644 --- a/analyzers/test/test.y +++ b/analyzers/test/test.y @@ -42,10 +42,8 @@ program: ; statement: - expr SEMICOLON | var_declaration SEMICOLON | func_declaration - | block ; block: @@ -54,6 +52,8 @@ block: statements_list: | statements_list statement + | statements_list block + | statements_list expr SEMICOLON ; expr: diff --git a/tests/test_blocks.txt b/tests/test_blocks.txt index dffd619..b8fe593 100644 --- a/tests/test_blocks.txt +++ b/tests/test_blocks.txt @@ -15,8 +15,8 @@ func func_without_return_type(a string) { return a; } -a := 1 + 2; -{ +func main() { + a := 229.162613;