rsnarsna
feat(lambdas): integrate ALLI-script engines and create 4 separate modular Lambda functions
ea3ef49 Download language_core/__init__.py from Rsnarsna/auto: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/spaces/Rsnarsna/auto/resolve/main/language_core/__init__.py
- Command line
-
hf download hf://spaces/Rsnarsna/auto/language_core/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Rsnarsna/auto/resolve/main/language_core/__init__.py
1.83 kB
| """ | |
| Language Core Package | |
| Implements the core fundamentals of programming & cross-language awareness: | |
| 1. Strict Data Types & Type Compatibility (types.py) | |
| 2. Variables, Scopes, and Symbol Tables (variables.py) | |
| 3. Control Flow Constructs (control_flow.py) | |
| 4. Graph Topologies, Port Connections & DAG Scheduler (topology.py) | |
| 5. Language Version Matrix & Syntax Capability Rules (version_matrix.py) | |
| 6. Universal Abstract Syntax Tree / Global Semantics (universal_ast.py) | |
| 7. Runtime Environment Inspector (runtime_environment.py) | |
| """ | |
| from language_core.types import ( | |
| DataType, TypeKind, parse_type_string, | |
| TYPE_INT, TYPE_FLOAT, TYPE_STR, TYPE_BOOL, TYPE_NONE, TYPE_BYTES, TYPE_ANY | |
| ) | |
| from language_core.variables import Variable, Scope, SymbolTable | |
| from language_core.control_flow import ControlFlowType, ControlFlowNode | |
| from language_core.topology import Port, Node, Connection, TopologyGraph | |
| from language_core.version_matrix import ( | |
| Language, LanguageFeature, VersionMatrix, parse_version_tuple | |
| ) | |
| from language_core.universal_ast import ( | |
| UNode, UProgram, UImport, UVariable, UFunction, UParameter, UClass, UBranch | |
| ) | |
| from language_core.runtime_environment import RuntimeEnvironment | |
| __all__ = [ | |
| # Types | |
| "DataType", "TypeKind", "parse_type_string", | |
| "TYPE_INT", "TYPE_FLOAT", "TYPE_STR", "TYPE_BOOL", "TYPE_NONE", "TYPE_BYTES", "TYPE_ANY", | |
| # Variables & Scopes | |
| "Variable", "Scope", "SymbolTable", | |
| # Control Flow | |
| "ControlFlowType", "ControlFlowNode", | |
| # Topology | |
| "Port", "Node", "Connection", "TopologyGraph", | |
| # Language Version Matrix | |
| "Language", "LanguageFeature", "VersionMatrix", "parse_version_tuple", | |
| # Universal AST | |
| "UNode", "UProgram", "UImport", "UVariable", "UFunction", "UParameter", "UClass", "UBranch", | |
| # Runtime Environment | |
| "RuntimeEnvironment" | |
| ] | |