"Kevin Trinh - 2023" by Kevin Trinh
 
Kevin Trinh - 2023

Kevin Trinh - 2023

Authors

Kevin Trinh

Files

Publication Date

11-10-2023

Digital Publisher

Digital Commons at St. Mary's University

Collection

McNair Scholars Symposium

Keywords

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

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.

Disciplines

Higher Education

Format

MOV

Medium

video

City

San Antonio, Texas

Error loading player: No playable sources found
 
Kevin Trinh - 2023

Share

COinS