ratmice / nimbleparse_lsp

lsp server for grmtools lex & yacc
Other
7 stars 1 forks source link

add a TestKind for ron based test lists #20

Closed ratmice closed 2 years ago

ratmice commented 2 years ago

The general idea is this will eventually have a ron file like below for short tests, as it can be annoying to have a bunch of really short files.

Tests(extension=".tdh", tests = [
"tom tom and tom",
r#"tom",
r#"
tom, dick and harry
"#,
""
])
ratmice commented 2 years ago

Going to close this for now and make a branch for toml based tests, I actually prefer Ron based multi-line strings to toml's, but there is currently a toml_spanned_value crate where we can get a Spanned<Vec<Spanned<String>>> with ron, we could plausibly use the ron-reboot::utf8-parser::ast_from_str, but the ast module which contains the return value is currently private...

Still there is a lot of shared code between any two solutions, so we could potentially revisit this back to using ron before merge...