"""
simple python module for KoiLang parsing
"""

from .lexer import BaseLexer, FileLexer, StringLexer
from .klvm import (
    KoiLang,
    Environment,
    kola_command,
    kola_text,
    kola_number,
    kola_annotation,
    kola_env_enter,
    kola_env_exit,
    kola_env_class,
)
from .version import __version__, __version_num__
from .exception import KoiLangError, KoiLangSyntaxError, KoiLangCommandError


__author__ = "Ovizro"
__author_email__ = "Ovizro@visecy.top"

# Map koilang.core classes to maintain original API
from .parser import Parser
from .writer import BaseWriter as Writer

__all__ = [
    "KoiLang",
    "Environment",
    "kola_command",
    "kola_text",
    "kola_number",
    "kola_annotation",
    "kola_env_enter",
    "kola_env_exit",
    "kola_env_class",
    "BaseLexer",
    "FileLexer",
    "StringLexer",
    "Parser",
    "Writer",
    "KoiLangError",
    "KoiLangSyntaxError",
    "KoiLangCommandError",
    "__version__",
    "__version_num__",
]
