Compiler-Based JavaScript Minifier

June 23, 20251 minute

A not-so-smart Javascript minifier built from scratch in C using Flex and Bison, implementing a complete compiler pipeline with lexical analysis, syntactic parsing, semantic validation, and code generation. The project showcases a custom symbol table with hash-based scope management and intelligent variable renaming using base-26 encoding—transforming verbose JavaScript into compact, optimized output while maintaining semantic correctness.

GitHub Repo
C Flex Bison CMake Docker