Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Dec 27, 2024
1 parent 70b9f90 commit 2264075
Show file tree
Hide file tree
Showing 71 changed files with 3,777 additions and 3,780 deletions.
8 changes: 4 additions & 4 deletions scripts/generate_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
middle = ""
bottom = ""

for file_path in files:
for file_path in sorted(files):
with open(file_path) as f:
parts = f.read().split('%%')
if len(parts) != 3:
Expand All @@ -19,8 +19,8 @@
bottom += parts[2]

with open(path + '/' + 'y.y', 'w') as f:
f.write(top)
f.write(top.strip())
f.write('\n%%\n')
f.write(middle)
f.write(middle.strip())
f.write('\n%%\n')
f.write(bottom)
f.write(bottom.strip())
Loading

0 comments on commit 2264075

Please sign in to comment.