lucasvbr.dev

Interpreter LIR

Custom LanguageInterpreterJava

Interpreteur LIR is a very simple interpreted language created as part of my DUT Informatique at the IUT of Rodez. It was developed in Java and allows the interpretation of commands directly in the terminal or via a file with the .lir extension.

Features

  • Interpretation of commands directly in the terminal
  • Reading and executing .lir files
  • Complete list of instructions and commands for proper functioning

Technologies Used

  • Java: Programming language used to develop the interpreter

Installation

Instructions to install and run the project.

# Clone the repository
git clone https://github.com/LucasVbr/InterpreteurLIR.git

# Navigate to the project directory
cd InterpreteurLIR

# Compile the project
javac *.java

# Run the interpreter
java Main

LIR Code Example

10 affiche "Enter your name : " 
20 entre $name 
30 affiche "Hello "+$name 
40 affiche  
50 stop