Kevin Trinh - 2023

Kevin Trinh - 2023

Authors

Kevin Trinh

Files

Publication Date

11-10-2023

Digital Publisher

Digital Commons at St. Mary's University

Disciplines

Higher Education

Keywords

Language processing, Custom language, Parser, Lexer, Semantic Analyzer, Virtual machine

Collection

McNair Scholars Symposium

Format

MOV

Medium

video

Description

This paper presents a Python-based toolset for translating custom language code into assembly language for a virtual machine. The toolset includes a lexer module for tokenizing the code, a parser module for generating an abstract syntax tree (AST), and a compiler or semantic analyzer module for translating the AST into assembly language instructions. The research focuses on the design and implementation of these components, utilizing top-down recursive parsing. Extensive testing ensures accurate translation and execution of custom language code. The toolset's flexibility enables future enhancements and support for diverse virtual machine architectures. The results demonstrate successful translation, highlighting the power and versatility of the developed toolset. This research advances language processing and compiler design, facilitating the seamless execution of domain-specific languages on virtual hardware platforms.

Loading...

Media is loading
 

Publisher

Digital Commons at St. Mary's University

City

San Antonio, Texas

Kevin Trinh - 2023

Share

COinS