Skip to content

Built a compiler frontend with tokenization, symbol table, and grammar-based syntax analysis. Added GUI visualization and error handling using Qt.

Notifications You must be signed in to change notification settings

GeorgeHany45/Python-Lexer-Parser

Repository files navigation

Python-Compiler

Features and Validations

  • Space in identifiers (e.g., w e is invalid)
  • Identifiers starting with invalid characters (e.g., 1words is invalid)
  • Multiline strings and block comments handling
  • Unknowns in the symbol table (msh moshkla)
  • Errors in the symbol table
  • Global indentation for control blocks (e.g., if, for, while should not be globally indented)
  • f for format strings shouldn't be treated as an identifier
  • Assignments like variable = variable type of first
  • Include delimiters (parentheses, dots, commas) in parse tree

About

Built a compiler frontend with tokenization, symbol table, and grammar-based syntax analysis. Added GUI visualization and error handling using Qt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published