/plex

Plex: Python's Flex

Primary LanguagePython

Plex

P**ython's F**lex

This is another lexer implement in Python. Define rules in a way like Flex's syntax.

Why not other lexer?

Another popular lexer is from PLY. This project is also inspired by PLY. However, there are several problems in PLY's lexer.

  • Rules are not applied in their defined sequence to match input texts.
  • Hello

Local Install

pip install -e .

It's useful for who developes this library.