Skip to content

m1kit/terregex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terregex

Terregex is structural regex transformation library.

Installation

You can install this library via PyPI.

pip install terregex

Getting Started

from terregex import Transformer, Literal

trans = Transformer()

@trans.add_rule()
def transform_literal(node: Literal):
    node.string = node.string.lower()

trans('(Foo|Bar)+') # => '(foo|bar)+'

About

Regex Transformation Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages