This commit is contained in:
Reid 'arrdem' McKenzie 2021-08-29 22:18:57 -06:00
commit 54ab71f19c
21 changed files with 80 additions and 81 deletions
projects/lilith

View file

@ -1,5 +1,6 @@
from setuptools import setup
with open("requirements.txt") as fp:
requirements = [l.strip() for l in fp.readlines()]

View file

@ -1,8 +1,8 @@
"""The Lilith runner."""
import logging
import argparse
from importlib.resources import read_text as resource_text
import logging
import sys
import traceback

View file

@ -5,8 +5,8 @@ A quick and dirty recursive interpreter for Lilith.
import logging
import typing as t
from lilith.parser import Apply, Block, Symbol, Args
from lilith.reader import Def, Module, Import
from lilith.parser import Apply, Args, Block, Symbol
from lilith.reader import Def, Import, Module
log = logging.getLogger(__name__)

View file

@ -2,10 +2,11 @@
Variously poor parsing for Lilith.
"""
import typing as t
from importlib.resources import read_text
import typing as t
from lark import Lark, Transformer, v_args
from lark import Lark, v_args, Transformer
GRAMMAR = read_text("lilith", "grammar.lark")