Publication Type : Conference Paper
Publisher : IEEE
Source : 2024 5th IEEE Global Conference for Advancement in Technology (GCAT)
Url : https://doi.org/10.1109/gcat62922.2024.10923959
Campus : Bengaluru
School : School of Computing
Department : Computer Science and Engineering
Year : 2024
Abstract : Lexical analyzers are important components of compilers and interpreters for coding languages such as C, Java, and C++. It acts as the first stage of the compiler, transforming the source code into a sequence of tokens. Such tokens, the smallest relevant parts of the program, are then applied to the phases of compiling. The C, C++ and Java lexical analyzer handles language-specific structures like identifiers, keywords, operators, and literals. The variations in syntax and semantics can be observed among these languages but the main conceptions in lexical analysis remain the same. This paper presents the implementation and design of a lexical analyzer for C, C++, and Java. When given a file containing code in any of these languages, the system analyzes the file’s content and classifies all the tokens into a category of identifiers, keywords, strings, numbers, symbols, operators, etc., and stores the token and token category in a symbol table and displays the table as the output and gives an error message if there are any syntax errors in the file.
Cite this Research Publication : Sai Smrithi Muthukumar, Bhavika Gandham, Trisha Vijayekkumaran, Nagasarapu Sarayu Krishna, Niharika Panda, Implementing a Multilingual Lexical Analyser for Java, C and C++, 2024 5th IEEE Global Conference for Advancement in Technology (GCAT), IEEE, 2024, https://doi.org/10.1109/gcat62922.2024.10923959