Modify grammar slighly to simplify parse tree
This commit is contained in:
2
README
2
README
@@ -10,7 +10,7 @@ so here we are.
|
||||
This engine is not going to be strictly supporting any standard
|
||||
syntax; the expression syntax I intend to support follows.
|
||||
|
||||
regex ::= sequence ( '|' regex )?
|
||||
regex ::= sequence ( '|' sequence )*
|
||||
sequence ::= term+
|
||||
term ::= ( '.' | class | literal | '(' regex ')' ) quantifier?
|
||||
class ::= '[' '^'? literal+ ']'
|
||||
|
||||
Reference in New Issue
Block a user