Modify grammar slighly to simplify parse tree

This commit is contained in:
2024-10-26 12:43:28 +01:00
parent 0c4b033d75
commit e906c64bda
4 changed files with 149 additions and 102 deletions

2
README
View File

@@ -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+ ']'