Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.12 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.12 KB

Simple Lexical Analyzer

This is a simple lexical analyzer for the C language. The repository contains an example program in C for testing.

The tokens_lexemes.pdf file shows the lexemes recognized by the lexical analyzer.

Prerequisites

Python 3.5.0 or last version...

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.5

Running the tests

Principal.py is the principal file of the project, just run this file to test the analyzer with default parameters.

python Principal.py

The size of buffer, output and .c program can be changed as you wish.

Built With

Authors

See also the list of contributors who participated in this project.