How i42output/neos works
neos is a language-agnostic scripting engine: a language schema and semantic concept library define a language, which is compiled to custom bytecode and executed by its VM/JIT. The graph preserves the documented schema/library capability and the sampled compiler-emission behavior. Runtime links beyond the visible concept-to-compiler calls are dashed because the available excerpts do not establish those calls; the bundled libffi dependency is not mapped as a product subsystem.
Main entry points: compiler.cpp Compiler · vm.cpp Virtual Machine · context.cpp Execution Context · bytecode.hpp Bytecode
Components 19
Language Definition
- Language Schema
src/schema.cpp - Concept Library API
include/neos/language/concept_library.hpp - Core Language Concepts
concepts/src/core/language.cpp - Python Concepts
concepts/src/core/python.cpp - Python Builtins
languages/packages/python/builtins.py - Semantic Concepts
include/neos/language/semantic_concept.hpp
Compilation
- Compiler
src/compiler.cpp - Compiler API
include/neos/language/compiler.hpp - Language AST
include/neos/language/ast.hpp - Scopes and Symbols
include/neos/language/scope.hpp
Bytecode Runtime
- Execution Context
src/api/context.cpp - Bytecode
include/neos/bytecode/bytecode.hpp - Opcode Set
include/neos/bytecode/opcodes.hpp - Virtual Machine
src/bytecode/vm.cpp - Custom JIT
src/bytecode/jit.cpp - Bytecode Text
src/bytecode/text.cpp - Console
console/src/console.cpp
Other components
- Language Author
- Script Result
Connections 17
- Language Author → Language Schema: defines syntax
- Language Author → Concept Library API: defines semantics
- Language Schema → Compiler: describes language
- Concept Library API → Compiler: supplies concepts
- Core Language Concepts → Compiler API: emits constructs
concepts/src/core/language.cpp - Python Concepts → Compiler API: emits constructs
concepts/src/core/python.cpp - Python Builtins → Python Concepts: extends language
- Compiler → Language AST: builds syntax tree
- Compiler → Scopes and Symbols: tracks bindings
- Compiler → Bytecode: produces bytecode
- Bytecode → Opcode Set: encodes operations
- Execution Context → Compiler: provides context
- Execution Context → Virtual Machine: runs scripts
- Virtual Machine → Custom JIT: uses JIT
- Bytecode Text → Bytecode: formats bytecode
- Console → Execution Context: invokes engine
- Virtual Machine → Script Result: returns result