How justarobloxgamecreator/scripty works
Scripty is a beginner-oriented language that translates .scy programs into Python. Its main workflow is: a user runs a file, the CLI reads it, then tokenization, parsing, semantic checking, and Python generation precede execution; build instead prints the generated Python. The graph also shows the AST and runtime helpers for friendly output and list behavior. Edges follow the CLI pipeline and source references shown in the excerpts or SOURCE INDEX; unsampled details are omitted.
Main entry points: cli.py CLI and orchestration · generator.py Python generator · parser.py Parser · checker.py Semantic checker
Components 13
Command line
- Script launcher
scripty.py - CLI and orchestration
cli.py
Language frontend
- Tokenizer
lexer.py - Parser
parser.py - Semantic checker
checker.py
Translation and runtime
- Python generator
generator.py - Python execution
runner.py - Output and list helpers
runner.py
Shared model
- Program AST
ast_nodes.py - Friendly errors
errors.py
Other components
- Program author
- Generated Python
- `.scy` program
Connections 19
- Program author → Script launcher: runs command
README.md - Script launcher → CLI and orchestration: delegates to
scripty.py - CLI and orchestration → `.scy` program: reads source
cli.py - CLI and orchestration → Tokenizer: tokenizes
cli.py - CLI and orchestration → Parser: parses
cli.py - CLI and orchestration → Semantic checker: checks meaning
cli.py - CLI and orchestration → Python generator: generates Python
cli.py - CLI and orchestration → Python execution: runs Python
cli.py - CLI and orchestration → Generated Python: prints on build
cli.py - Tokenizer → Friendly errors: raises errors
lexer.py - Parser → Tokenizer: consumes tokens
parser.py - Parser → Program AST: builds tree
parser.py - Semantic checker → Program AST: checks tree
checker.py - Semantic checker → Friendly errors: raises errors
checker.py - Python generator → Program AST: translates tree
generator.py - Python generator → Output and list helpers: emits helper calls
generator.py - Python generator → Generated Python: produces source
generator.py - Python execution → Output and list helpers: provides helpers
runner.py - Python execution → Friendly errors: reports errors
runner.py