Skip to content

Jinglever/logexp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logical Expression Compiler

Functions:

- Compile(exp string)
- Match(text string)

Usage Example:

exp := "(hello|hi)&world"
expression, err := logexp.Compile(exp)
if err != nil {
	// TODO
} else {
	text := "hello world"
	hit := expression.Match(text)
	fmt.Println(hit)
}

About

logical expression compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages