This commit is contained in:
Reid 'arrdem' McKenzie 2021-09-19 18:05:22 -06:00
commit a6e59b2e0c
28 changed files with 195 additions and 57 deletions

View file

@ -1,16 +1,32 @@
"""The Lilith runner."""
import argparse
from importlib.resources import read_text as resource_text
from importlib.resources import (
read_text as resource_text,
)
import logging
import sys
import traceback
from lilith.interpreter import Bindings, eval as lil_eval, Runtime
from lilith.interpreter import (
Bindings,
eval as lil_eval,
Runtime,
)
from lilith.parser import parse_expr, Symbol
from lilith.reader import Def, Module, read_buffer, read_file
from prompt_toolkit import print_formatted_text, PromptSession
from prompt_toolkit.formatted_text import FormattedText
from lilith.reader import (
Def,
Module,
read_buffer,
read_file,
)
from prompt_toolkit import (
print_formatted_text,
PromptSession,
)
from prompt_toolkit.formatted_text import (
FormattedText,
)
from prompt_toolkit.history import FileHistory
from prompt_toolkit.styles import Style
import yaml

View file

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

View file

@ -6,7 +6,11 @@ import logging
import typing as t
from warnings import warn
from lilith.parser import Block, parse_buffer, Symbol
from lilith.parser import (
Block,
parse_buffer,
Symbol,
)
log = logging.getLogger(__name__)

View file

@ -2,7 +2,10 @@
Pytest fixtures.
"""
from lilith.parser import GRAMMAR, parser_with_transformer
from lilith.parser import (
GRAMMAR,
parser_with_transformer,
)
import pytest

View file

@ -2,7 +2,11 @@
"""
from lilith.interpreter import Bindings, eval, Runtime
from lilith.interpreter import (
Bindings,
eval,
Runtime,
)
from lilith.parser import Apply, Args, Symbol
from lilith.reader import Def, Module
import pytest

View file

@ -1,6 +1,12 @@
"""tests covering the Lilith parser."""
from lilith.parser import Apply, Args, Block, parse_buffer, Symbol
from lilith.parser import (
Apply,
Args,
Block,
parse_buffer,
Symbol,
)
import pytest

View file

@ -1,6 +1,11 @@
"""Tests covering the reader."""
from lilith.parser import Apply, Args, Block, Symbol
from lilith.parser import (
Apply,
Args,
Block,
Symbol,
)
from lilith.reader import Def, Module, read_buffer
import pytest