Skip to content

Commit fd672ed

Browse files
Update README.md
1 parent ee6585c commit fd672ed

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ If you like or are using this project please give it a star. Thanks!
1010
# Why SimpleStateMachine?
1111
**Forget** about regular expressions and **enjoy searching*
1212

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-
```
23-
2413
1. Describe search pattern🔎
2514
```C#
2615
// Just text and placeholders
@@ -51,6 +40,17 @@ parseResult.Placeholders[0].Offset // Start 5, End 17
5140
5241
```
5342

43+
# Grammar
44+
```C#
45+
grammar = term EOF
46+
term = '(' term ')' | '{' term '}' | '[' term ']' | term + | token
47+
token = placeholder | string_literal | whitespaces | comment
48+
placeholder = '$' identifier '$'
49+
string_literal = <escaped string>
50+
whitespace = [“\n\r| '\n' | ' '] +
51+
comment = <single or multiline comment>
52+
```
53+
5454
## Getting Started📂
5555
Install from Nuget:
5656
```sh

0 commit comments

Comments
 (0)