Skip to content

DABOUZmanal/Compiler-Design-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧠 SlimParser

A compiler design project implemented in Java.
This project focuses on building a Recursive Descent Parser for a small educational programming language.

πŸ“˜ Project Overview

SlimParser is a simple compiler developed for academic purposes. It performs syntax analysis by validating program structure according to predefined grammar rules.

βš™οΈ Main Components

  • Token definitions
  • Lexer (token stream simulation)
  • Recursive Descent Parser
  • Main execution class

✨ Supported Features

  • Program structure (prg, deb, fin)
  • Variable declarations (int, float, bool, string)
  • Assignment statements
  • Conditional statements (si / sin / is)
  • Loop statements (tq / qt)
  • Input instruction (lre)
  • Output instruction (ecr)
  • Arithmetic expressions
  • Boolean expressions
  • Relational operators

🧠 Parsing Technique

The project uses the Recursive Descent Parsing technique. Each grammar rule is implemented as a Java method.


🎯 Learning Objectives

  • Understand compiler design concepts
  • Learn syntax analysis
  • Apply grammar rules in code
  • Practice recursive descent parsing

β˜• Technology

  • Java

About

Mini compiler design project implementing a recursive descent parser in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages