Fmt.
This commit is contained in:
parent
223fd5688b
commit
a6e59b2e0c
28 changed files with 195 additions and 57 deletions
projects/lilith
src/python/lilith
test/python
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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__)
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
Pytest fixtures.
|
||||
"""
|
||||
|
||||
from lilith.parser import GRAMMAR, parser_with_transformer
|
||||
from lilith.parser import (
|
||||
GRAMMAR,
|
||||
parser_with_transformer,
|
||||
)
|
||||
import pytest
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue