utils.py 136 B

123456
  1. from pathlib import Path
  2. def load_grammar(path: Path):
  3. with open(path, "r", encoding="utf-8") as file:
  4. return file.read()