Simplifying code translation: Custom syntax language to C language transpiler
In today’s world, programming has become a very essential skill as it is used everywhere, from creating software’s for operating systems to analysis of patients’ health care data in biomedical engineering. Programmers usually face a lot of difficulties to understand beginner level coding languages having low-level syntax. The proposed study "Simplifying Code Translation: Custom Syntax Language to C Language Transpiler", targets the specified problem and provides the solution in a form of transpiler that converts the newly developed custom language (made up of high-level syntax) to C language. The developed tool minimizes the overall cost incurred during the code designing process. This transpiler consists of 4 main parts: preprocessor, lexer, parser and emitter. It first starts by creating preprocessor which handles preprocessor directives such as 'define' and 'include'. This preprocessed code is then passed onto lexer which tokenizes the code. The parser is responsible for creating Abstract Syntax Tree (AST) using the tokens provided. The final AST is then transformed to C program by the emitter. Then output C code maintains proper syntactic and semantic structure of the original custom syntax language code.
Authors
- Misha Kakkar (ORCID: https://orcid.org/0000-0002-2061-0477)
- Pasupuleti Yashwanth Lalith
- Seema Sharma (ORCID: https://orcid.org/0000-0003-3131-4179)
- Sujal Goel (ORCID: https://orcid.org/0000-0002-1066-827X)
Institutions
- Amity University (IN)
Publication Details
- Published
- 2025-02-06
- DOI
- https://doi.org/10.1109/cictn64563.2025.10932385
- Citations
- 2
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 4.96