Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 333 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 333 Bytes

Lexical-analyzer

Program identifies tokens in given code based on certain rules.

Rules for identifying different tokens are written as regex expressions. These are stored as a list of tuples of the form (regex, token type).

The function lexicalAnalyzer takes in code to be analyzed and name of output file.