-
Notifications
You must be signed in to change notification settings - Fork 2
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
b019c9e
commit 2c081a7
Showing
1,696 changed files
with
170,648 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
gen-validator-tests | ||
validator/tests/* | ||
validator/benches/* |
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 @@ | ||
{ | ||
"MenuPaperclip": [ | ||
"a", | ||
"b", | ||
"c" | ||
] | ||
} |
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,60 @@ | ||
{ | ||
"TopPattern": { | ||
"TreeNode": { | ||
"Name": { | ||
"Name": { | ||
"StringValue": "MenuPaperclip" | ||
} | ||
}, | ||
"Pattern": { | ||
"Concat": { | ||
"OpenBracket": { | ||
"Value": "[" | ||
}, | ||
"LeftPattern": { | ||
"TreeNode": { | ||
"Name": { | ||
"Name": { | ||
"IntValue": 0 | ||
} | ||
}, | ||
"Colon": { | ||
"Value": ":" | ||
}, | ||
"Pattern": { | ||
"LeafNode": { | ||
"Expr": { | ||
"BuiltIn": { | ||
"Symbol": { | ||
"Value": "==" | ||
}, | ||
"Expr": { | ||
"Terminal": { | ||
"Literal": "\"a\"", | ||
"StringValue": "a" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"Comma": { | ||
"Value": "," | ||
}, | ||
"RightPattern": { | ||
"ZAny": { | ||
"Star": { | ||
"Value": "*" | ||
} | ||
} | ||
}, | ||
"CloseBracket": { | ||
"Value": "]" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
MenuPaperclip[0:=="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,63 @@ | ||
<Grammar> | ||
<TopPattern> | ||
<TreeNode> | ||
<Name> | ||
<Name> | ||
<StringValue>MenuPaperclip</StringValue> | ||
<BytesValue></BytesValue> | ||
</Name> | ||
</Name> | ||
<Pattern> | ||
<Concat> | ||
<OpenBracket> | ||
<Value>[</Value> | ||
</OpenBracket> | ||
<LeftPattern> | ||
<TreeNode> | ||
<Name> | ||
<Name> | ||
<IntValue>0</IntValue> | ||
<BytesValue></BytesValue> | ||
</Name> | ||
</Name> | ||
<Colon> | ||
<Value>:</Value> | ||
</Colon> | ||
<Pattern> | ||
<LeafNode> | ||
<Expr> | ||
<BuiltIn> | ||
<Symbol> | ||
<Value>==</Value> | ||
</Symbol> | ||
<Expr> | ||
<Terminal> | ||
<Literal>"a"</Literal> | ||
<StringValue>a</StringValue> | ||
<BytesValue></BytesValue> | ||
</Terminal> | ||
</Expr> | ||
</BuiltIn> | ||
</Expr> | ||
</LeafNode> | ||
</Pattern> | ||
</TreeNode> | ||
</LeftPattern> | ||
<Comma> | ||
<Value>,</Value> | ||
</Comma> | ||
<RightPattern> | ||
<ZAny> | ||
<Star> | ||
<Value>*</Value> | ||
</Star> | ||
</ZAny> | ||
</RightPattern> | ||
<CloseBracket> | ||
<Value>]</Value> | ||
</CloseBracket> | ||
</Concat> | ||
</Pattern> | ||
</TreeNode> | ||
</TopPattern> | ||
</Grammar> |
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,12 @@ | ||
{ | ||
"SaladWorry": { | ||
"MagazineFrame": [ | ||
"a", | ||
"b" | ||
], | ||
"XrayPilot": { | ||
"AnkleCoat": 2 | ||
} | ||
}, | ||
"RumourSpirit": 1 | ||
} |
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 @@ | ||
{ | ||
"TopPattern": { | ||
"ZAny": { | ||
"Star": { | ||
"Value": "*" | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
* |
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 @@ | ||
<Grammar> | ||
<TopPattern> | ||
<ZAny> | ||
<Star> | ||
<Value>*</Value> | ||
</Star> | ||
</ZAny> | ||
</TopPattern> | ||
</Grammar> |
12 changes: 12 additions & 0 deletions
12
validator/tests/goreflect/Ab21InAnyExceptSaladWorry/invalid.goreflect
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,12 @@ | ||
{ | ||
"SaladWorry": { | ||
"MagazineFrame": [ | ||
"a", | ||
"b" | ||
], | ||
"XrayPilot": { | ||
"AnkleCoat": 2 | ||
} | ||
}, | ||
"RumourSpirit": 1 | ||
} |
93 changes: 93 additions & 0 deletions
93
validator/tests/goreflect/Ab21InAnyExceptSaladWorry/validator.json
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,93 @@ | ||
{ | ||
"TopPattern": { | ||
"Concat": { | ||
"OpenBracket": { | ||
"Value": "[" | ||
}, | ||
"LeftPattern": { | ||
"TreeNode": { | ||
"Name": { | ||
"AnyNameExcept": { | ||
"Exclamation": { | ||
"Value": "!" | ||
}, | ||
"OpenParen": { | ||
"Value": "(" | ||
}, | ||
"Except": { | ||
"Name": { | ||
"StringValue": "SaladWorry" | ||
} | ||
}, | ||
"CloseParen": { | ||
"Value": ")" | ||
} | ||
} | ||
}, | ||
"Pattern": { | ||
"Concat": { | ||
"OpenBracket": { | ||
"Value": "[" | ||
}, | ||
"LeftPattern": { | ||
"TreeNode": { | ||
"Name": { | ||
"Name": { | ||
"StringValue": "MagazineFrame" | ||
} | ||
}, | ||
"Colon": { | ||
"Value": ":" | ||
}, | ||
"Pattern": { | ||
"LeafNode": { | ||
"Expr": { | ||
"BuiltIn": { | ||
"Symbol": { | ||
"Value": "==" | ||
}, | ||
"Expr": { | ||
"Terminal": { | ||
"Literal": "\"a\"", | ||
"StringValue": "a" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"Comma": { | ||
"Value": "," | ||
}, | ||
"RightPattern": { | ||
"ZAny": { | ||
"Star": { | ||
"Value": "*" | ||
} | ||
} | ||
}, | ||
"CloseBracket": { | ||
"Value": "]" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"Comma": { | ||
"Value": "," | ||
}, | ||
"RightPattern": { | ||
"ZAny": { | ||
"Star": { | ||
"Value": "*" | ||
} | ||
} | ||
}, | ||
"CloseBracket": { | ||
"Value": "]" | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
validator/tests/goreflect/Ab21InAnyExceptSaladWorry/validator.txt
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 @@ | ||
[!(SaladWorry)[MagazineFrame:=="a",*],*] |
96 changes: 96 additions & 0 deletions
96
validator/tests/goreflect/Ab21InAnyExceptSaladWorry/validator.xml
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,96 @@ | ||
<Grammar> | ||
<TopPattern> | ||
<Concat> | ||
<OpenBracket> | ||
<Value>[</Value> | ||
</OpenBracket> | ||
<LeftPattern> | ||
<TreeNode> | ||
<Name> | ||
<AnyNameExcept> | ||
<Exclamation> | ||
<Value>!</Value> | ||
</Exclamation> | ||
<OpenParen> | ||
<Value>(</Value> | ||
</OpenParen> | ||
<Except> | ||
<Name> | ||
<StringValue>SaladWorry</StringValue> | ||
<BytesValue></BytesValue> | ||
</Name> | ||
</Except> | ||
<CloseParen> | ||
<Value>)</Value> | ||
</CloseParen> | ||
</AnyNameExcept> | ||
</Name> | ||
<Pattern> | ||
<Concat> | ||
<OpenBracket> | ||
<Value>[</Value> | ||
</OpenBracket> | ||
<LeftPattern> | ||
<TreeNode> | ||
<Name> | ||
<Name> | ||
<StringValue>MagazineFrame</StringValue> | ||
<BytesValue></BytesValue> | ||
</Name> | ||
</Name> | ||
<Colon> | ||
<Value>:</Value> | ||
</Colon> | ||
<Pattern> | ||
<LeafNode> | ||
<Expr> | ||
<BuiltIn> | ||
<Symbol> | ||
<Value>==</Value> | ||
</Symbol> | ||
<Expr> | ||
<Terminal> | ||
<Literal>"a"</Literal> | ||
<StringValue>a</StringValue> | ||
<BytesValue></BytesValue> | ||
</Terminal> | ||
</Expr> | ||
</BuiltIn> | ||
</Expr> | ||
</LeafNode> | ||
</Pattern> | ||
</TreeNode> | ||
</LeftPattern> | ||
<Comma> | ||
<Value>,</Value> | ||
</Comma> | ||
<RightPattern> | ||
<ZAny> | ||
<Star> | ||
<Value>*</Value> | ||
</Star> | ||
</ZAny> | ||
</RightPattern> | ||
<CloseBracket> | ||
<Value>]</Value> | ||
</CloseBracket> | ||
</Concat> | ||
</Pattern> | ||
</TreeNode> | ||
</LeftPattern> | ||
<Comma> | ||
<Value>,</Value> | ||
</Comma> | ||
<RightPattern> | ||
<ZAny> | ||
<Star> | ||
<Value>*</Value> | ||
</Star> | ||
</ZAny> | ||
</RightPattern> | ||
<CloseBracket> | ||
<Value>]</Value> | ||
</CloseBracket> | ||
</Concat> | ||
</TopPattern> | ||
</Grammar> |
Oops, something went wrong.