浏览代码

added tests for lark.lark changes

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
starwarswii 4 年前
父节点
当前提交
d385d10739
共有 3 个文件被更改,包括 5 次插入0 次删除
  1. +2
    -0
      examples/lark_grammar.py
  2. +2
    -0
      examples/tests/negative_priority.lark
  3. +1
    -0
      examples/tests/no_newline_at_end.lark

+ 2
- 0
examples/lark_grammar.py 查看文件

@@ -19,6 +19,8 @@ grammar_files = [
examples_path / 'relative-imports/multiples.lark',
examples_path / 'relative-imports/multiple2.lark',
examples_path / 'relative-imports/multiple3.lark',
examples_path / 'tests/no_newline_at_end.lark',
examples_path / 'tests/negative_priority.lark',
lark_path / 'grammars/common.lark',
]



+ 2
- 0
examples/tests/negative_priority.lark 查看文件

@@ -0,0 +1,2 @@
start: r
r.-1: "a"

+ 1
- 0
examples/tests/no_newline_at_end.lark 查看文件

@@ -0,0 +1 @@
start: "a"

正在加载...
取消
保存