Urdu-C: A Localized Educational C-Like Compiler with Multi-Backend Code Generation and Program Visualization
Programming languages predominantly use English-based syntax and terminology, which may introduce an additional learning barrier for novice programmers whose primary language is not English. This paper presents Urdu-C, a localized educational C-like compiler and visualization environment designed for Urdu-speaking beginner programmers. Urdu-C allows learners to write programs using Roman Urdu keywords while retaining programming constructs and semantics familiar from C. The system implements a modular compilation pipeline comprising lexical analysis, recursive-descent parsing, semantic analysis, and Three-Address Code (TAC) generation. Its multi-backend architecture supports a Minimal Tape Machine (MTM) backend and LLVM Intermediate Representation (LLVM IR), enabling supported programs to be compiled into native executables using Clang. To support learning, a browser-based visualization interface exposes source code, lexical tokens, abstract syntax trees, semantic-analysis results, TAC, and backend outputs within a unified environment. The compiler also provides scope- and type-aware semantic checking and typo-sensitive diagnostic suggestions. The implementation is validated…
- arXiv
- 2612.01904
- Authors
- Syed Sarib Sultan, Adnan Rashid
- Categories
- cs.PL