And lint
This commit is contained in:
parent
bc06fc01ff
commit
54ab71f19c
21 changed files with 80 additions and 81 deletions
projects/lilith
|
@ -1,5 +1,6 @@
|
|||
from setuptools import setup
|
||||
|
||||
|
||||
with open("requirements.txt") as fp:
|
||||
requirements = [l.strip() for l in fp.readlines()]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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__)
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue