How ishuamouren/jscription works
Jscription is a JSON-driven scripting engine with a command-line runner. Its principal workflow is to select run, read a JSON script, parse and prepare its commands, then execute them against shared variable context. The command registry exposes console, control-flow, dialog, filesystem, environment, network, path, process, math, string, and variable operations. The tree also contains compiler and CLI compile components; their runtime connection is not established by the excerpts, so they are shown separately. Edges reflect excerpted calls or SOURCE INDEX references.
Main entry points: CommandRegistry.cs Command registry · JscriptionReader.cs JSON reader · CmdRoot.cs Command execution · Program.cs CLI dispatch
Components 25
CLI runner
- CLI dispatch
Jscription.Runner/Program.cs - Run command
Jscription.Runner/Commands/CommandRun.cs - Compile command
Jscription.Runner/Commands/CommandCompile.cs - Version info
Jscription.Runner/Classes/Global.cs
Script runtime
- JSON reader
Jscription.Core/Utils/JscriptionReader.cs - Script document
Jscription.Core/Classes/JscriptionDoc.cs - Command registry
Jscription.Core/Commands/CommandRegistry.cs - Execution context
Jscription.Core/Commands/ExecutionContext.cs - Command execution
Jscription.Core/Commands/CmdRoot.cs - Script executor
Jscription.Core/Utils/JscriptionExecuter.cs - Script errors
Jscription.Core/Exceptions/Exceptions.cs
Script commands
- Console commands
Jscription.Core/Commands/CmdConsole.cs - Control commands
Jscription.Core/Commands/CmdControl.cs - Dialog commands
Jscription.Core/Commands/CmdDialog.cs - File and directory
Jscription.Core/Commands/CmdFile.cs - Environment commands
Jscription.Core/Commands/CmdEnv.cs - Network commands
Jscription.Core/Commands/CmdNet.cs - Path commands
Jscription.Core/Commands/CmdPath.cs - Process commands
Jscription.Core/Commands/CmdProcess.cs - Math commands
Jscription.Core/Commands/CmdMath.cs - String commands
Jscription.Core/Commands/CmdString.cs - Variable commands
Jscription.Core/Commands/CmdVar.cs
Compilation
- Script compiler
Jscription.Core/Compiler/JscriptionCompiler.cs - Binary compiler
Jscription.Core/Compiler/JscriptionBinraryCompiler.cs
Other components
- Script author
Connections 25
- Script author → CLI dispatch: invokes
README.md - CLI dispatch → Run command: dispatches
Jscription.Runner/Program.cs - CLI dispatch → Version info: displays version
Jscription.Runner/Program.cs - Run command → JSON reader: parses script
Jscription.Runner/Commands/CommandRun.cs - Run command → Script executor: starts execution
Jscription.Runner/Commands/CommandRun.cs - JSON reader → Script document: builds document
Jscription.Core/Utils/JscriptionReader.cs - JSON reader → Command registry: creates commands
Jscription.Core/Utils/JscriptionReader.cs - JSON reader → Execution context: initializes context
Jscription.Core/Utils/JscriptionReader.cs - JSON reader → Command execution: initializes commands
Jscription.Core/Utils/JscriptionReader.cs - JSON reader → Script errors: raises parse errors
Jscription.Core/Utils/JscriptionReader.cs - Script executor → Command execution: executes commands
Jscription.Core/Utils/JscriptionExecuter.cs - Command execution → Command registry: creates nested commands
Jscription.Core/Commands/CmdRoot.cs - Command execution → Execution context: uses variables
Jscription.Core/Commands/CmdRoot.cs - Command execution → Script errors: wraps failures
Jscription.Core/Commands/CmdRoot.cs - Command registry → Console commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Control commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Dialog commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → File and directory: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Environment commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Network commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Path commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Process commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Math commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → String commands: registers
Jscription.Core/Commands/CommandRegistry.cs - Command registry → Variable commands: registers
Jscription.Core/Commands/CommandRegistry.cs