Skip to content

Urdu-C: A Localized Educational C-Like Compiler with Multi-Backend Code Generation and Program Visualization

Syed Sarib Sultan, Adnan Rashid

cs.PL

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