Skip to content

Files

Latest commit

c394f2d · Dec 8, 2024

History

History
27 lines (17 loc) · 684 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 684 Bytes

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