From df269f6121ac1ba71d8cf7ba4f21cd163c522ef7 Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Mon, 30 Aug 2021 10:06:17 +0100 Subject: [PATCH] Examples: Fixed python3.lark for reconstruction (but maybe a bug in reconstructor?) --- examples/advanced/python3.lark | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/advanced/python3.lark b/examples/advanced/python3.lark index 7fb5ae5..b3cb2c5 100644 --- a/examples/advanced/python3.lark +++ b/examples/advanced/python3.lark @@ -106,8 +106,8 @@ suite: simple_stmt | _NEWLINE _INDENT stmt+ _DEDENT ?test_nocond: or_test | lambdef_nocond ?or_test: and_test ("or" and_test)* -?and_test: not_test ("and" not_test)* -?not_test: "not" not_test -> not_test +?and_test: not_test_ ("and" not_test_)* +?not_test_: "not" not_test_ -> not_test | comparison ?comparison: expr (comp_op expr)* star_expr: "*" expr