feat(definitions):
* add parsing for new validator defs * start adding typechecking * add a unit test for parsing
This commit is contained in:
@@ -76,6 +76,7 @@ pub enum Token {
|
||||
Type,
|
||||
When,
|
||||
Trace,
|
||||
Validator,
|
||||
}
|
||||
|
||||
impl fmt::Display for Token {
|
||||
@@ -156,6 +157,7 @@ impl fmt::Display for Token {
|
||||
Token::Type => "type",
|
||||
Token::Test => "test",
|
||||
Token::ErrorTerm => "error",
|
||||
Token::Validator => "validator",
|
||||
};
|
||||
write!(f, "\"{s}\"")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user