Exploring Different Methods of Scanners and Parsers
Authors:
- 16 May 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-7
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.Keywords
This publication has 19 references indexed in Scilit:
- Blackhole Attack Prediction in Wireless Sensor Networks Using Support Vector Machine2023
- Blackhole Attack Impact Analysis on Low Power Lossy Networks2022
- Review of automatic text summarization techniques & methodsJournal of King Saud University Computer and Information Sciences, 2022
- A Survey of Automatic Text Summarization: Progress, Process and ChallengesIEEE Access, 2021
- MBA: A Multimodal Bilinear Attention Model with Residual Connection for Abstractive Multimodal SummarizationJournal of Physics: Conference Series, 2021
- Automatic text summarization: A comprehensive surveyExpert Systems with Applications, 2021
- Syntax Error Search Using Parser Combinators2021
- Improving text summarization of online hotel reviews with review helpfulness and sentimentTourism Management, 2020
- SRL-ESA-TextSum: A text summarization approach based on semantic role labeling and explicit semantic analysisInformation Processing & Management, 2019
- International Conference on Computer Networks and Communication TechnologiesLecture Notes on Data Engineering and Communications Technologies, 2019