Publication Type : Conference Paper
Publisher : IEEE
Source : 2024 International Conference on Advances in Modern Age Technologies for Health and Engineering Science (AMATHE)
Url : https://doi.org/10.1109/amathe61652.2024.10582089
Campus : Bengaluru
School : School of Computing
Department : Computer Science and Engineering
Year : 2024
Abstract :
Compiler design represents the intersection of art and science, where intricate algorithms and creative problem-solving converge to translate abstract human-readable code into machine-executable instructions. At the heart of this complex process lie the essential components of the scanner and parser, working in harmony to decode the syntax and semantics of programming languages. In this exploration of compiler design, embark on a journey into the realms of scanning and parsing, unraveling the intricacies that transform code into executable software. The scanner is the lexical analyzer, serves as the gate-keeper in the compiler's journey. Its main task is to meticulously break-down the source code into manageable units called as the tokens. From identifying keywords to recognizing variables and constants, the scanner lays the groundwork for the subsequent phases of the compilation process. In this study we are going to focus on how any model of scanners work based on given input. The parser, responsible for syntax analysis, ensures that these sequence of tokens adheres to the grammatical rules of the particular programming language which is being used. This study focus on how a token is treated in Bottom up and Top down like left recursion, left factoring, augmentation, parse tree, DFA etc. The choice of parsing algorithm, whether LL(1) A top down approach or SLR, LALR bottom up parser impacts the efficiency and accuracy of this process. This process follows checking first, follow, parse table, shift reduce conflicts the acceptance. Compiler design is more than a technical endeavor, it is a craft that demands precision, creativity, and a deep understanding of both programming languages and the intricacies of hardware architecture. The scanner and parser stand as gatekeepers at the entrance to a realm where human intent transforms into machine action, making compiler design a captivating field where innovation and standards converge.
Cite this Research Publication : Asmitha M, Niharika Panda, Exploring Different Methods of Scanners and Parsers, 2024 International Conference on Advances in Modern Age Technologies for Health and Engineering Science (AMATHE), IEEE, 2024, https://doi.org/10.1109/amathe61652.2024.10582089