Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler Forge Toolkit

Version HTML5 JavaScript Tailwind DaisyUI Netlify Status

A web-based companion for compiler design learning.

Overview

Compiler Forge Toolkit converts theoretical compiler design steps—left recursion elimination, left factoring, First/Follow computation—into instant, structured calculations. Built as part of a Compiler Design course, it minimizes handwritten mistakes and frees students to focus on conceptual understanding rather than repetitive algebra.

Purpose

  • implement core compiler construction algorithms in practice
  • provide real-time feedback for grammar transformations
  • reduce manual calculation errors
  • bridge mathematical theory with interactive UI/UX
  • act as a learning aid rather than a black-box calculator

Problems Addressed

  • eliminating direct and indirect left recursion
  • performing accurate left factoring
  • computing First and Follow sets for LL(1) parsing
  • managing complex grammar inputs without confusion
  • debugging lengthy manual derivations

Core Functionalities

  • Left Recursion Elimination: auto-detects and resolves recursion in grammar rules
  • Left Factoring: restructures ambiguous grammar fragments for predictive parsing
  • First & Follow Sets: computes sets needed for LL(1) table construction
  • Real-Time Output: delivers formatted results instantly as users input grammar

Educational Focus

Designed explicitly for compiler coursework, reinforcing classroom theory with deterministic JavaScript implementations and visual outputs.

Technology Stack

Technology Purpose
HTML5 Layout and structure
JavaScript Algorithm logic and parsing
Tailwind CSS Styling
DaisyUI Component library
Netlify Deployment and hosting

Implementation Philosophy

  • deterministic JavaScript algorithms mirroring textbook steps
  • structured grammar parsing and validation
  • live UI updates with clearly separated result sections

Impact

  • reduces computational errors and saves study time
  • strengthens understanding through immediate verification
  • encourages experimentation with diverse grammars
  • serves as a validation assistant before exams or labs

Academic Context

Developed for the Compiler Design course to demonstrate mastery of grammar transformations, parsing logic, and the translation of theory-heavy concepts into an interactive web toolkit.

About

Compiler Forge Toolkit is a web-based utility designed to simplify and accelerate learning in compiler design.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages