Implement support for IO Bool tests

This commit is contained in:
Nathan McCarty 2024-12-31 18:12:35 -05:00
parent c089685a2a
commit 09ac7506ee
4 changed files with 49 additions and 11 deletions

View file

@ -1,16 +1,22 @@
unit module IUtils::Regexes;
my token comment-start { \- \- }
my token type {
'test' | 'bench'
}
my token output-type {
'()' | 'Bool' | 'Either'
}
my token comment-start { \- \- }
my token flag { \@ \@ <type> }
my token name { <[\w \-]>+ }
my token comment-line { <&comment-start> \V* \v }
my regex flagged-expression is export {
<&comment-start> \h* <flag> \h* <test-name=&name> \V* \v
[<&comment-start> \V* \v]*
<expression-name=&name> \h+ \: \V* \v
<comment-line>*
<expression-name=&name> \h+ \: \h+ 'IO' \h+ <output-type> \V* \v
}
my regex module-name is export {