Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Toy Language Interpreter – Java Project

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.


🚀 Features

  • Expression evaluation

    • Arithmetic (+, -, *, /)
    • Boolean operations
    • Relational expressions
  • Statements

    • Variable declaration & assignment
    • Conditional (if)
    • Loops (while)
    • Print
    • 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

▶️ How to Run the Project

1. Open the Project

  1. Open IntelliJ IDEA
  2. Go to File → Open
  3. Select the project folder

2. Configure the JDK

  1. Go to File → Project Structure → Project
  2. Set Project SDK to Java 17+
  3. Apply changes

3. Build the Project

Click Build Project

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages