-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: advance in the implementation of expression parsing
- Loading branch information
Showing
10 changed files
with
158 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rule test { | ||
condition: | ||
true and not false or (false or true) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[email protected] | ||
[email protected] | ||
[email protected] "rule" | ||
[email protected] " " | ||
[email protected] "test" | ||
[email protected] " " | ||
[email protected] "{" | ||
[email protected] "\n" | ||
[email protected] "\t" | ||
[email protected] | ||
[email protected] "condition" | ||
[email protected] ":" | ||
[email protected] "\n" | ||
[email protected] "\t\t" | ||
[email protected] | ||
[email protected] | ||
[email protected] "true" | ||
[email protected] " " | ||
[email protected] "and" | ||
[email protected] " " | ||
[email protected] | ||
[email protected] "not" | ||
[email protected] " " | ||
[email protected] | ||
[email protected] "false" | ||
[email protected] " " | ||
[email protected] "or" | ||
[email protected] " " | ||
[email protected] | ||
[email protected] "(" | ||
[email protected] | ||
[email protected] | ||
[email protected] "false" | ||
[email protected] " " | ||
[email protected] "or" | ||
[email protected] " " | ||
[email protected] | ||
[email protected] "true" | ||
[email protected] ")" | ||
[email protected] "\n" | ||
[email protected] "}" | ||
[email protected] "\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ rule test { | |
strings: | ||
$a = { 00 11 AA ?? B? ?2 ~02 11223344 } | ||
condition: | ||
true | ||
$a | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SOURCE_FILE@0..87 | ||
RULE_DECL@0..87 | ||
SOURCE_FILE@0..85 | ||
RULE_DECL@0..85 | ||
[email protected] "rule" | ||
[email protected] " " | ||
[email protected] "test" | ||
|
@@ -43,13 +43,13 @@ [email protected] | |
[email protected] "}" | ||
[email protected] "\n" | ||
[email protected] " " | ||
CONDITION_BLK@67..85 | ||
CONDITION_BLK@67..83 | ||
[email protected] "condition" | ||
[email protected] ":" | ||
[email protected] "\n" | ||
[email protected] "\t " | ||
BOOLEAN_EXPR@81..85 | ||
BOOLEAN_TERM@81..85 | ||
TRUE_KW@81..85 "true" | ||
NEWLINE@85..86 "\n" | ||
R_BRACE@86..87 "}" | ||
BOOLEAN_EXPR@81..83 | ||
BOOLEAN_TERM@81..83 | ||
PATTERN_IDENT@81..83 "$a" | ||
NEWLINE@83..84 "\n" | ||
R_BRACE@84..85 "}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ rule test { | |
strings: | ||
$a = { 11 ( 22 | 33 ) 44 } | ||
condition: | ||
true | ||
$a | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
SOURCE_FILE@0..74 | ||
RULE_DECL@0..74 | ||
SOURCE_FILE@0..72 | ||
RULE_DECL@0..72 | ||
[email protected] "rule" | ||
[email protected] " " | ||
[email protected] "test" | ||
|
@@ -41,13 +41,13 @@ [email protected] | |
[email protected] "}" | ||
[email protected] "\n" | ||
[email protected] " " | ||
CONDITION_BLK@54..72 | ||
CONDITION_BLK@54..70 | ||
[email protected] "condition" | ||
[email protected] ":" | ||
[email protected] "\n" | ||
[email protected] "\t " | ||
BOOLEAN_EXPR@68..72 | ||
BOOLEAN_TERM@68..72 | ||
TRUE_KW@68..72 "true" | ||
NEWLINE@72..73 "\n" | ||
R_BRACE@73..74 "}" | ||
BOOLEAN_EXPR@68..70 | ||
BOOLEAN_TERM@68..70 | ||
PATTERN_IDENT@68..70 "$a" | ||
NEWLINE@70..71 "\n" | ||
R_BRACE@71..72 "}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters