This project is a full interpreter for a custom toy programming language, built in Java . It includes lexical evaluation, expressions, statements, heap/managers, file operations, type checking, and a text-based menu for running predefined examples.
-
Expression evaluation
- Arithmetic (
+,-,*,/) - Boolean operations
- Relational expressions
- Arithmetic (
-
Statements
- Variable declaration & assignment
- Conditional (
if) - Loops (
while) - File operations (
openRFile,readFile,closeRFile) - Heap operations (
new,writeHeap)
-
Program State
- Execution stack
- Symbol table
- Output list
- File table
- Heap
-
Type Checking
- Ensures program validity before execution
-
Text Menu Interface
- Run predefined example programs
- Open IntelliJ IDEA
- Go to File → Open
- Select the project folder
- Go to File → Project Structure → Project
- Set Project SDK to Java 17+
- Apply changes
Click Build Project