Skip to content

avii09/lex_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lex and Syntax Analyzer

This project is a combined Lexical Analyzer and Syntax Analyzer (Parser) that processes input text, generates tokens, and parses them according to a defined grammar. It is designed to be a part of a compiler.

Features

  • Tokenizes input text
  • Supports various token types (identifiers, keywords, literals, operators, etc.)
  • Parses tokens based on a defined grammar
  • Provides detailed error messages for invalid tokens and syntax errors

Installation

To install the necessary dependencies, run:

pip install -r requirements.txt

Usage

To use the Lex and Syntax Analyzer, run the following command:

python function.py

About

Python Lexical and syntax analysis parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages