22 lines
517 B
Python
22 lines
517 B
Python
# scopes.core.core
|
|
|
|
"""The scopes.core package"""
|
|
|
|
import asyncio
|
|
from dataclasses import dataclass
|
|
from types import CoroutineType, FunctionType
|
|
from typing import Any
|
|
|
|
from scopes.util import keywords as k, Symbol
|
|
|
|
@dataclass
|
|
class Scope:
|
|
|
|
value: Any = 0
|
|
categ: tuple[Symbol, Symbol] = (k.csys, k.c00)
|
|
stage: Symbol = k.initial
|
|
proc: CoroutineType | None = None
|
|
program: dict[tuple[Symbol, Symbol], CoroutineType] = {}
|
|
syns: list[FunctionType] = []
|
|
environ: asyncio.Queue | None = None
|
|
|