File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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-
24131 . 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📂
5555Install from Nuget :
5656```sh
You can’t perform that action at this time.
0 commit comments