How tneverd/islamiccpp works
Islamic C++ is an educational C++17 interpreter for .icp programs. The documented workflow is to load a source file, tokenize it, parse tokens into an AST, and execute that tree, producing output. The runtime also supports variables and expressions, control flow, functions, collections, file operations, input, and system-information helpers. The main entry point and several interpreter features are excerpted; broader stage relationships and documented capabilities are grounded in the README, so unsampled internal dispatch details are not expanded.
Main entry points: Interpreter.cpp Interpreter · main.cpp File runner · Lexer.cpp Lexer · Parser.cpp Parser
Components 15
Source Front End
- File runner
main.cpp - Lexer
Lexer.cpp - Token definitions
Token.h - Parser
Parser.cpp
Syntax Model
- AST nodes
AST.h
Execution Runtime
- Interpreter
Interpreter.cpp - Values and expressions
Interpreter.cpp - Control and functions
Interpreter.cpp - Collections and strings
Interpreter.cpp - System information
Interpreter.cpp
Program I/O
- File operations
Interpreter.cpp - Console I/O
Interpreter.cpp
Other components
- Program author
- ICP source
- Program output
Connections 15
- Program author → ICP source: writes
README.md - ICP source → File runner: runs as
README.md - File runner → Lexer: creates
main.cpp - Lexer → Token definitions: emits
Lexer.cpp - File runner → Parser: passes tokens
main.cpp - Parser → AST nodes: builds
README.md - File runner → Interpreter: evaluates tree
main.cpp - Interpreter → AST nodes: traverses
README.md - Interpreter → Values and expressions: evaluates
Interpreter.cpp - Interpreter → Control and functions: executes
README.md - Interpreter → Collections and strings: supports
Interpreter.cpp - Interpreter → System information: queries
Interpreter.cpp - Interpreter → File operations: performs
Interpreter.cpp - Interpreter → Console I/O: uses
README.md - Interpreter → Program output: produces
README.md