Skip to content

Simple Regex Engine implemented in python (union, concatenation and Kleene star only)

Notifications You must be signed in to change notification settings

aayushprime/regexpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

regexpy

Simple Regex Engine implemented in python (supports union, concatenation and Kleene star only)

How it works (Overview)

  • Input infix regex is converted into postfix expression
  • Postfix expression is evaluated to construct a NFA(Thompson's construction)
  • Constructed NFA is searched using ε-closure

Syntax

  • Union (\)
  • Kleene Star (*)
  • Concatenation (Blank)

Escape Sequences not supported yet. The letters of the language are lowercase ASCII letters.

About

Simple Regex Engine implemented in python (union, concatenation and Kleene star only)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages