Cleaned up stuff from porting
This commit is contained in:
parent
35a6f4537f
commit
5b5e24e633
|
|
@ -1,8 +1,6 @@
|
|||
"""sls — Python skeleton for SLS reimplementation
|
||||
"""sls — Python SLS reimplementation
|
||||
|
||||
Expose package version and small helpers here.
|
||||
"""
|
||||
|
||||
__all__ = ["__version__", "cli"]
|
||||
|
||||
__version__ = "0.0.1"
|
||||
__all__ = ["main"]
|
||||
|
|
|
|||
|
|
@ -1,16 +1,8 @@
|
|||
# sls/interpreter.py
|
||||
# Kyler Olsen
|
||||
# YREA SLS
|
||||
# Interpreter (Python OOP port)
|
||||
# November 2025
|
||||
|
||||
from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum, auto
|
||||
from typing import Callable, Dict, List, Optional
|
||||
|
||||
# import the types from your lexer module
|
||||
# adjust the import path to where you put the lexer module
|
||||
from .lexer import (
|
||||
Token,
|
||||
TokenType,
|
||||
|
|
@ -76,7 +68,7 @@ class InterpreterState:
|
|||
def __init__(self):
|
||||
self.stack: List[StackEntry] = []
|
||||
self.functions: Dict[str, FunctionItem] = {}
|
||||
# Optionally load builtins; caller can pass a loader function
|
||||
|
||||
if load_builtins is not None:
|
||||
ok = load_builtins(self)
|
||||
if not ok:
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
# Kyler Olsen
|
||||
# YREA SLS
|
||||
# Meta File (Python port)
|
||||
# November 2025
|
||||
|
||||
import sys
|
||||
try:
|
||||
from ._version import version, commit, timestamp # type: ignore
|
||||
|
|
|
|||
Loading…
Reference in New Issue