Skip to content

Commit ee6585c

Browse files
Update README.md
1 parent 72fcade commit ee6585c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@ StructuralSearch - An easy-to-use library for structural search and replace in t
88
If you like or are using this project please give it a star. Thanks!
99

1010
# Why SimpleStateMachine?
11-
**Forget** about regular expressions and **enjoy searching**
11+
**Forget** about regular expressions and **enjoy searching*
12+
13+
# Grammar
14+
```C#
15+
grammar = term EOF
16+
term = '(' term ')' | '{' term '}' | '[' term ']' | term + | token
17+
token = placeholder | string_literal | whitespaces | comment
18+
placeholder = '$' identifier '$'
19+
string_literal = <escaped string>
20+
whitespace = [“\n\r| '\n' | ' '] +
21+
comment = <single or multiline comment>
22+
```
1223

1324
1. Describe search pattern🔎
1425
```C#

0 commit comments

Comments
 (0)