How lim-yuna/japyscript works
JapyScript is a standalone programming language and runtime. The principal workflow is a developer invoking jpy to compile .jpy source through tokenization, parsing, optional checking, and bytecode emission, then execute it on the VM. The repository also documents a standard library, concurrency, server primitives, package management, formatting/linting, and native bindings. Some of these branches are documented in the README but their implementation wiring was not sampled, so those relationships are not inferred.
Main entry points: jpy.py CLI · machine.py Virtual Machine · parser.py Parser · __init__.py Type Checker
Components 18
Language Toolchain
- CLI
cli/jpy.py - Lexer
compiler/lexer.py - Token Model
compiler/tokens.py - Parser
compiler/parser.py - AST
compiler/ast.py - Type Checker
compiler/checker/__init__.py - Type Primitives
compiler/checker/types.py - Bytecode Emitter
compiler/emitter/__init__.py - Bytecode Format
compiler/emitter/bytecode.py - Formatter
cli/formatter.py - Linter
cli/linter.py
Runtime
- Virtual Machine
vm/machine.py - Async Scheduler
vm/scheduler.py
Language Ecosystem
- Standard Library
stdlib - Server Primitives
server - Package Manager
jpm/jpm.py
Native Interop
- Native Bindings
bindings
Other components
- Developer
Connections 21
- Developer → CLI: invokes
README.md - CLI → Lexer: tokenizes
cli/jpy.py - Lexer → Token Model: emits tokens
compiler/lexer.py - CLI → Parser: parses
cli/jpy.py - Parser → Token Model: consumes
compiler/parser.py - Parser → AST: builds
compiler/parser.py - CLI → Type Checker: checks
cli/jpy.py - Type Checker → AST: checks
compiler/checker/__init__.py - Type Checker → Type Primitives: uses types
compiler/checker/__init__.py - CLI → Bytecode Emitter: compiles
cli/jpy.py - Bytecode Emitter → AST: walks
compiler/emitter/__init__.py - Bytecode Emitter → Bytecode Format: produces
compiler/emitter/__init__.py - CLI → Virtual Machine: executes
cli/jpy.py - Virtual Machine → Bytecode Format: dispatches
vm/machine.py - CLI → Formatter: formats
README.md - CLI → Linter: lints
- Virtual Machine → Async Scheduler: async scheduling
- Standard Library → Virtual Machine: runs on
README.md - Server Primitives → Standard Library: provides primitives
README.md - Developer → Package Manager: manages packages
README.md - Developer → Native Bindings: integrates native code
README.md