Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Changed all Lark grammar files to have .lark extension
Browse files Browse the repository at this point in the history
Lark Grammar files are expected to have a .lark file extension
  • Loading branch information
HenryLeC committed Nov 7, 2020
1 parent e46fdd1 commit 289ca9d
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hedy.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def print(self, args):


def create_parser(level):
with open(f"grammars/level{str(level)}.txt", "r") as file:
with open(f"grammars/level{str(level)}.lark", "r") as file:
grammar = file.read()
return Lark(grammar)

Expand Down

0 comments on commit 289ca9d

Please sign in to comment.