Skip to content

Commit 031cadd

Browse files
committed
Fix examples: Remove extend-python example (outdated); other fixes.
1 parent c3b2996 commit 031cadd

File tree

3 files changed

+2
-48
lines changed

3 files changed

+2
-48
lines changed

examples/advanced/error_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from lark import Token
1414

15-
from examples.advanced._json_parser import json_parser
15+
from _json_parser import json_parser
1616

1717
def ignore_errors(e):
1818
if e.token.type == 'COMMA':

examples/advanced/extend_python.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/relative-imports/multiples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from lark import Lark, UnexpectedInput
1515

16-
parser = Lark.open('multiples.lark', parser='lalr')
16+
parser = Lark.open('multiples.lark', rel_to=__file__, parser='lalr')
1717

1818
def is_in_grammar(data):
1919
try:

0 commit comments

Comments
 (0)