-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6505cdb
commit 21a29da
Showing
20 changed files
with
902 additions
and
22 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,7 @@ | ||
rule test | ||
{ | ||
strings: | ||
$a = "foo" | ||
condition: | ||
$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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
- SOURCE_FILE | ||
- RULE | ||
- "rule" RULE | ||
- " " WHITESPACE | ||
- IDENTIFIER | ||
- "test" IDENTIFIER | ||
- "\n" WHITESPACE | ||
- BLOCK_EXPR | ||
- "{" LBRACE | ||
- "\n\t" WHITESPACE | ||
- STRINGS | ||
- "strings" STRINGS | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- VARIABLE_STMT | ||
- VARIABLE | ||
- "$a" VARIABLE | ||
- " " WHITESPACE | ||
- "=" ASSIGN | ||
- " " WHITESPACE | ||
- STRING | ||
- "\"foo\"" STRING | ||
- "\n\t" WHITESPACE | ||
- CONDITION | ||
- "condition" CONDITION | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- EXPRESSION_STMT | ||
- LITERAL | ||
- "$a" VARIABLE | ||
- "\n" WHITESPACE | ||
- "}" RBRACE | ||
- "\n" WHITESPACE |
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,9 @@ | ||
rule test | ||
{ | ||
strings: | ||
$a = "foo" | ||
$b = "bar" | ||
condition: | ||
$a or | ||
$b | ||
} |
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,48 @@ | ||
- SOURCE_FILE | ||
- RULE | ||
- "rule" RULE | ||
- " " WHITESPACE | ||
- IDENTIFIER | ||
- "test" IDENTIFIER | ||
- "\n" WHITESPACE | ||
- BLOCK_EXPR | ||
- "{" LBRACE | ||
- "\n\t" WHITESPACE | ||
- STRINGS | ||
- "strings" STRINGS | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- VARIABLE_STMT | ||
- VARIABLE | ||
- "$a" VARIABLE | ||
- " " WHITESPACE | ||
- "=" ASSIGN | ||
- " " WHITESPACE | ||
- STRING | ||
- "\"foo\"" STRING | ||
- "\n\t\t" WHITESPACE | ||
- VARIABLE_STMT | ||
- VARIABLE | ||
- "$b" VARIABLE | ||
- " " WHITESPACE | ||
- "=" ASSIGN | ||
- " " WHITESPACE | ||
- STRING | ||
- "\"bar\"" STRING | ||
- "\n\t" WHITESPACE | ||
- CONDITION | ||
- "condition" CONDITION | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- EXPRESSION_STMT | ||
- EXPRESSION | ||
- LITERAL | ||
- "$a" VARIABLE | ||
- " " WHITESPACE | ||
- "or" OR | ||
- "\n\t\t" WHITESPACE | ||
- LITERAL | ||
- "$b" VARIABLE | ||
- "\n" WHITESPACE | ||
- "}" RBRACE | ||
- "\n" WHITESPACE |
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,15 @@ | ||
//Global comment | ||
|
||
//Rule comment | ||
rule test | ||
{ | ||
//Rule block comment | ||
|
||
//String comment | ||
strings: | ||
$a = "foo" | ||
$b = "bar" | ||
condition: | ||
$a or | ||
$b and 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,62 @@ | ||
- SOURCE_FILE | ||
- "//Global comment" COMMENT | ||
- "\n\n" WHITESPACE | ||
- RULE | ||
- "//Rule comment" COMMENT | ||
- "\n" WHITESPACE | ||
- "rule" RULE | ||
- " " WHITESPACE | ||
- IDENTIFIER | ||
- "test" IDENTIFIER | ||
- "\n" WHITESPACE | ||
- BLOCK_EXPR | ||
- "{" LBRACE | ||
- "\n\t" WHITESPACE | ||
- "//Rule block comment" COMMENT | ||
- "\n\n\t" WHITESPACE | ||
- STRINGS | ||
- "//String comment" COMMENT | ||
- "\n\t" WHITESPACE | ||
- "strings" STRINGS | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- VARIABLE_STMT | ||
- VARIABLE | ||
- "$a" VARIABLE | ||
- " " WHITESPACE | ||
- "=" ASSIGN | ||
- " " WHITESPACE | ||
- STRING | ||
- "\"foo\"" STRING | ||
- "\n\t\t" WHITESPACE | ||
- VARIABLE_STMT | ||
- VARIABLE | ||
- "$b" VARIABLE | ||
- " " WHITESPACE | ||
- "=" ASSIGN | ||
- " " WHITESPACE | ||
- STRING | ||
- "\"bar\"" STRING | ||
- "\n\t" WHITESPACE | ||
- CONDITION | ||
- "condition" CONDITION | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- EXPRESSION_STMT | ||
- EXPRESSION | ||
- LITERAL | ||
- "$a" VARIABLE | ||
- " " WHITESPACE | ||
- "or" OR | ||
- "\n\t\t" WHITESPACE | ||
- EXPRESSION | ||
- LITERAL | ||
- "$b" VARIABLE | ||
- " " WHITESPACE | ||
- "and" AND | ||
- " " WHITESPACE | ||
- LITERAL | ||
- "true" TRUE | ||
- "\n" WHITESPACE | ||
- "}" RBRACE | ||
- "\n" WHITESPACE |
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 @@ | ||
SyntaxError("expected a variable", 98..98) |
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,15 @@ | ||
//Global comment | ||
|
||
//Rule comment | ||
rule test | ||
{ | ||
//Rule block comment | ||
|
||
//String comment | ||
strings: | ||
a = "foo" | ||
$b = "bar" | ||
condition: | ||
$a or | ||
$b and 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,62 @@ | ||
- SOURCE_FILE | ||
- "//Global comment" COMMENT | ||
- "\n\n" WHITESPACE | ||
- RULE | ||
- "//Rule comment" COMMENT | ||
- "\n" WHITESPACE | ||
- "rule" RULE | ||
- " " WHITESPACE | ||
- IDENTIFIER | ||
- "test" IDENTIFIER | ||
- "\n" WHITESPACE | ||
- BLOCK_EXPR | ||
- "{" LBRACE | ||
- "\n\t" WHITESPACE | ||
- "//Rule block comment" COMMENT | ||
- "\n\n\t" WHITESPACE | ||
- STRINGS | ||
- "//String comment" COMMENT | ||
- "\n\t" WHITESPACE | ||
- "strings" STRINGS | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- VARIABLE_STMT | ||
- ERROR | ||
- "a" IDENTIFIER | ||
- " " WHITESPACE | ||
- "=" ASSIGN | ||
- " " WHITESPACE | ||
- STRING | ||
- "\"foo\"" STRING | ||
- "\n\t\t" WHITESPACE | ||
- VARIABLE_STMT | ||
- VARIABLE | ||
- "$b" VARIABLE | ||
- " " WHITESPACE | ||
- "=" ASSIGN | ||
- " " WHITESPACE | ||
- STRING | ||
- "\"bar\"" STRING | ||
- "\n\t" WHITESPACE | ||
- CONDITION | ||
- "condition" CONDITION | ||
- ":" COLON | ||
- "\n\t\t" WHITESPACE | ||
- EXPRESSION_STMT | ||
- EXPRESSION | ||
- LITERAL | ||
- "$a" VARIABLE | ||
- " " WHITESPACE | ||
- "or" OR | ||
- "\n\t\t" WHITESPACE | ||
- EXPRESSION | ||
- LITERAL | ||
- "$b" VARIABLE | ||
- " " WHITESPACE | ||
- "and" AND | ||
- " " WHITESPACE | ||
- LITERAL | ||
- "true" TRUE | ||
- "\n" WHITESPACE | ||
- "}" RBRACE | ||
- "\n" WHITESPACE |
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 @@ | ||
SyntaxError("expected expression", 144..144) |
Oops, something went wrong.