项目作者: christianrfg

项目描述 :
Lexical Analyzer in Python
高级语言: Python
项目地址: git://github.com/christianrfg/lexical-analyzer.git
创建时间: 2017-08-27T04:21:11Z
项目社区:https://github.com/christianrfg/lexical-analyzer

开源协议:

下载


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…

  1. sudo add-apt-repository ppa:fkrull/deadsnakes
  2. sudo apt-get update
  3. 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.

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