86fda31ab1
Functions and variables relating to compilation and parsing have been moved to `compiler.py` and `lex/__init__.py`, respectively. Those functions are - `hy_parse` from `hy.importer` to `hy.lex` - `hy_eval`, `ast_compile`, and `calling_module` from `hy.importer` to `hy.compiler` Closes hylang/hy#1695.
17 lines
429 B
Python
17 lines
429 B
Python
__appname__ = 'hy'
|
|
try:
|
|
from hy.version import __version__
|
|
except ImportError:
|
|
__version__ = 'unknown'
|
|
|
|
|
|
from hy.models import HyExpression, HyInteger, HyKeyword, HyComplex, HyString, HyBytes, HySymbol, HyFloat, HyDict, HyList, HySet # NOQA
|
|
|
|
|
|
import hy.importer # NOQA
|
|
# we import for side-effects.
|
|
|
|
|
|
from hy.core.language import read, read_str, mangle, unmangle # NOQA
|
|
from hy.compiler import hy_eval as eval # NOQA
|