How adhiinsvy13/speek-interpreter works
SPEEK is a Java language interpreter with a React web IDE. The main user flow is writing code in the IDE, submitting it to the Spring REST endpoint, and viewing execution output, tokens, variables, or errors. The backend interpreter tokenizes, parses, and evaluates programs. The tree also contains a standalone Java interpreter with a parallel pipeline. The README documents the IDE capabilities and API connection; some frontend request wiring and runtime internals were not sampled, so those links are cited to the README or omitted.
Main entry points: interpreter/Interpreter.java Interpreter Orchestrator · src/Interpreter.java Interpreter Orchestrator · App.jsx Editor and Views · Parser.java Parser
Components 19
Browser IDE
- Editor and Views
frontend/src/App.jsx - React Entry
frontend/src/main.jsx
REST API
- Execute Endpoint
backend/src/main/java/SPEEK/Backend/ExecuteController.java
Web Interpreter
- Interpreter Orchestrator
backend/src/main/java/SPEEK/interpreter/Interpreter.java - Tokenizer
backend/src/main/java/SPEEK/interpreter/tokenizer/Tokenizer.java - Parser
backend/src/main/java/SPEEK/interpreter/parser/Parser.java - Expressions
backend/src/main/java/SPEEK/interpreter/parser/Expression.java - Evaluator
backend/src/main/java/SPEEK/interpreter/evaluator/Evaluator.java - Instructions
backend/src/main/java/SPEEK/interpreter/evaluator/Instruction.java - Variable Environment
backend/src/main/java/SPEEK/interpreter/evaluator/Environment.java
Standalone Interpreter
- Standalone Entry
src/Main.java - Interpreter Orchestrator
src/Interpreter.java - Tokenizer
src/tokenizer/Tokenizer.java - Parser
src/parser/Parser.java - Expressions
src/parser/Expression.java - Evaluator
src/evaluator/Evaluator.java - Instructions
src/evaluator/Instruction.java - Variable Environment
src/evaluator/Environment.java
Other components
- Programmer
Connections 16
- Programmer → Editor and Views: writes program
- React Entry → Editor and Views: renders
frontend/src/main.jsx - Editor and Views → Execute Endpoint: submits code
- Execute Endpoint → Interpreter Orchestrator: executes
backend/src/main/java/SPEEK/Backend/ExecuteController.java - Interpreter Orchestrator → Tokenizer: tokenizes
backend/src/main/java/SPEEK/interpreter/Interpreter.java - Interpreter Orchestrator → Parser: parses tokens
backend/src/main/java/SPEEK/interpreter/Interpreter.java - Interpreter Orchestrator → Evaluator: evaluates program
backend/src/main/java/SPEEK/interpreter/Interpreter.java - Parser → Instructions: creates
backend/src/main/java/SPEEK/interpreter/parser/Parser.java - Parser → Expressions: builds expressions
backend/src/main/java/SPEEK/interpreter/parser/Parser.java - Editor and Views → Execute Endpoint: shows results
- Standalone Entry → Interpreter Orchestrator: starts
- Interpreter Orchestrator → Tokenizer: tokenizes
src/Interpreter.java - Interpreter Orchestrator → Parser: parses tokens
src/Interpreter.java - Interpreter Orchestrator → Evaluator: evaluates program
src/Interpreter.java - Parser → Instructions: creates
src/parser/Parser.java - Parser → Expressions: builds expressions
src/parser/Parser.java