-
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.
* Renamed the example directory in the test directory to valid * Updated the grammer to allow dashes to be used in rule names * Updated the grammer to allow for keys with spaces if they are enclosed with quotes. Updated the parsing test case schema file with different names to confirm the regex works * Updated the parser rule_name to have test cases. Replaced the NamedTuple Token with the actual Lark type * Updated the documentation to include details on the update rule names. Updated the changelog with the release date and set the new version in the setup.py file
- Loading branch information
Showing
15 changed files
with
135 additions
and
77 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
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 was deleted.
Oops, something went wrong.
File renamed without changes.
5 changes: 3 additions & 2 deletions
5
tests/files/example/example.yaml → tests/files/valid/valid.yaml
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,7 +1,8 @@ | ||
message: hello world | ||
number: 42 | ||
person: | ||
name: Test Tester | ||
first_name: Test | ||
last-name: Tester | ||
age: 42 | ||
isEmployed: true | ||
department: lead | ||
department: lead |
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,39 @@ | ||
# Test the use of underscores | ||
enum Employee_department { | ||
MANAGER = "manager" | ||
LEAD = "lead" | ||
} | ||
|
||
ruleset PersonAddress { | ||
houseNumber int | ||
street str | ||
city str | ||
post_code str | ||
} | ||
|
||
ruleset Person { | ||
first_name str # Make sure underscores are parsed correctly | ||
last-name str # Make sure dashes are parsed correctly | ||
age int | ||
address PersonAddress optional | ||
isEmployed bool | ||
department Employee_department | ||
} | ||
|
||
# Testing different field options | ||
ruleset FieldOptions { | ||
under_scores str | ||
required-under_scores str required | ||
required_under-scores str optional | ||
"hello world" str optional | ||
ரஷ str required | ||
ரஷ3 str | ||
!!test[] str optional | ||
} | ||
|
||
schema { | ||
message str | ||
number int | ||
person Person optional | ||
options FieldOptions optional | ||
} |
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
Oops, something went wrong.