Browse Source

added tests for lark.lark changes

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
starwarswii 4 years ago
parent
commit
d385d10739
3 changed files with 5 additions and 0 deletions
  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 View File

@@ -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 View File

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

+ 1
- 0
examples/tests/no_newline_at_end.lark View File

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

Loading…
Cancel
Save