Skip to content

hamon-e/the_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#the_parser

Generic parser that takes a config file to see the different regex.
It uses its own format (.gramz)
It returns a tree where each rule will create a subtree

rules_names:	Creation of a rule

#phrase		Comments

[rule_name]	Rule that will not be integrated to the tree

()		Regroup severals regex
|		Or
!		Force at least one regex to be true
-		That regex must be false

?		0 or 1 repetition
+		1 or more repetitions
*		0 or more repetitions

'.'		One specific character
"..."		A string

See the_parser_example to see how to use it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages