ソースを参照

Examples: Fixed python3.lark for reconstruction (but maybe a bug in reconstructor?)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.12.0
Erez Sh 3年前
コミット
df269f6121
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      examples/advanced/python3.lark

+ 2
- 2
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


読み込み中…
キャンセル
保存