Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 599 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 599 Bytes

Lexical-Analyzer-in-C-

Here you will get program to implement lexical analyzer in C++ Compiler is responsible for converting high level language in machine language. There are several phases involved in this and lexical analysis is the first phase.

Lexical analyzer reads the characters from source code and convert it into tokens.

Different tokens or lexemes are:

Keywords Identifiers Operators Constants Take below example.

c = a + b;

After lexical analysis a symbol table is generated as given below.

Token Type c identifier = operator a identifier

  • operator b identifier ; separator