Design and Implementation of a Minimalist Programming Language Stab using Flex, Bison and LLVM

Authors

  • Abhilekh Gautam Nepal College of Information Technology
  • Bishal Lamichhane Nepal College of Information Technology
  • Ankit Lamichhane Nepal College of Information Technology
  • Aashan Bhattarai Nepal College of Information Technology
  • Amit Shrivastava Nepal College of Information Technology

DOI:

https://doi.org/10.3126/jost.v4i2.78954

Keywords:

Programming language, Flex, Bison, LLVM, Compiler

Abstract

We present the development of a minimalist programming language using Flex, Bison, and LLVM (Low Level Virtual Machine). The language supports essential programming constructs, including data types, loops, conditional statements, arrays, and functions. The project involved building a compiler capable of translating high-level language constructs into machine code. Challenges such as error handling and symbol table management were addressed effectively, ensuring the compiler’s reliability and functionality. This project demonstrates the successful integration of Flex, Bison, and LLVM in a compiler framework, serving as a valuable educational tool. It has significant implications for Nepalese education, where practical opportunities in compiler construction are limited. By offering a concrete example of language design and implementation, this work aims to enhance the computer science curriculum in Nepalese universities, bridging the gap between theoretical concepts and practical application.

Downloads

Download data is not yet available.
Abstract
77
PDF
118

Downloads

Published

2024-12-31

How to Cite

Gautam, A., Lamichhane, B., Lamichhane, A., Bhattarai, A., & Shrivastava, A. (2024). Design and Implementation of a Minimalist Programming Language Stab using Flex, Bison and LLVM. Journal of Science and Technology, 4(2), 65–70. https://doi.org/10.3126/jost.v4i2.78954