A lexer for simple arithmetic expressions built with Python. The lexer also recognizes the following keywords:
- if
- else
- while
- for
- do
- int
- switch
- float
- Open your terminal
- Clone this repo
https://github.com/georgeben/Lexical-Analyzer/
- cd into
Lexical-Analyzer
- Run
python main.py
The input.txt
file holds the input for the lexical analyzer. You can edit it to add more characters.