normalize-languages 0.3.1

Tree-sitter language support and dynamic grammar loading
Documentation
1
2
3
4
5
6
7
8
9
10
11
import os
import sys
from pathlib import Path
from collections import defaultdict, OrderedDict

def read_file(path: str) -> str:
    p = Path(path)
    return p.read_text()

def list_dir(directory: str):
    return os.listdir(directory)