Improvements in packaging.
The ziffers.lark file is not included in the installed package. This was preventing users from importing the ziffers package from elsewhere.
This commit is contained in:
@ -6,10 +6,11 @@ from .mapper import ZiffersTransformer
|
||||
|
||||
|
||||
grammar_path = Path(__file__).parent
|
||||
grammar = grammar_path / "ziffers.lark"
|
||||
grammar_folder = Path.joinpath(grammar_path, "spec")
|
||||
grammar_file = Path.joinpath(grammar_folder, "ziffers.lark")
|
||||
|
||||
ziffers_parser = Lark.open(
|
||||
grammar,
|
||||
str(grammar_file),
|
||||
rel_to=__file__,
|
||||
start="root",
|
||||
parser="lalr",
|
||||
|
||||
Reference in New Issue
Block a user