Skip to content

A lexer for simple arithmetic expressions built with Python

Notifications You must be signed in to change notification settings

georgeben/Lexical-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Lexical-Analyzer

A lexer for simple arithmetic expressions built with Python. The lexer also recognizes the following keywords:

  • if
  • else
  • while
  • for
  • do
  • int
  • switch
  • float

Set up

  • 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.

About

A lexer for simple arithmetic expressions built with Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages