Urdu-C: A Localized Educational C-Like Compiler with Multi-Backend Code Generation and Program Visualization
Abstract
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 using representative programs involving control flow and recursion, together with an automated suite of 13 unit and integration tests. Urdu-C demonstrates how language localization, compiler-pipeline visualization, and multi-backend compilation can be integrated into a lightweight educational programming environment.
Create a lesson
Metadata
- Journal
- 21st IEEE International Conference on Emerging Technologies (IEEE ICET 2026)
- Comments
- 6 Pages
Related papers
Tenon: A Unified Programming Framework for Retargetable PIM Compilation
Shared title terminologycs.PLNiansong Zhang, Shiran Guo, Zhiru Zhang
Python Code Generation for Isabelle/HOL
Shared title terminologycs.PLNikolaus Huber, Roly Perera, Dominic Orchard
CompCert4Lean: Porting a Verified C Compiler to Lean in Six Weeks with Parallel Coding Agents
Shared title terminologycs.PLCong Wang, Zhiyang Chen, Fan Long et al.
TauLang: A Language and Compiler for Space-Time Programming on Statically Scheduled Accelerators
Shared title terminologycs.PLXuxiao Yang, Junchi Wu, Yuqi Peng et al.
te-comp: A Complete MLIR Compiler Generating Self-Contained C Inference Engines for MCUs
Shared title terminologycs.PLVan Chan Ngo
Quantum Program Verification Needs a New SAT/SMT Solver
Shared title terminologycs.PLMingsheng Ying