-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic parser support for
with expiration
on subject types
- Loading branch information
1 parent
2cb6d8c
commit 9b89c57
Showing
20 changed files
with
387 additions
and
43 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,3 @@ | ||
caveat expiration(someparam int) { | ||
someparam == 42 | ||
} |
29 changes: 29 additions & 0 deletions
29
pkg/schemadsl/parser/tests/expirationnonkeyword.zed.expected
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,29 @@ | ||
NodeTypeFile | ||
end-rune = 52 | ||
input-source = expiration non-keyword test | ||
start-rune = 0 | ||
child-node => | ||
NodeTypeCaveatDefinition | ||
caveat-definition-name = expiration | ||
end-rune = 52 | ||
input-source = expiration non-keyword test | ||
start-rune = 0 | ||
caveat-definition-expression => | ||
NodeTypeCaveatExpression | ||
caveat-expression-expressionstr = someparam == 42 | ||
|
||
end-rune = 51 | ||
input-source = expiration non-keyword test | ||
start-rune = 36 | ||
parameters => | ||
NodeTypeCaveatParameter | ||
caveat-parameter-name = someparam | ||
end-rune = 30 | ||
input-source = expiration non-keyword test | ||
start-rune = 18 | ||
caveat-parameter-type => | ||
NodeTypeCaveatTypeReference | ||
end-rune = 30 | ||
input-source = expiration non-keyword test | ||
start-rune = 28 | ||
type-name = int |
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,3 @@ | ||
use something | ||
|
||
definition resource {} |
Oops, something went wrong.