Add more diagnostic messages

This commit is contained in:
dkanus 2026-04-12 17:52:39 +07:00
commit 8632ba0a86
32 changed files with 1255 additions and 546 deletions

View file

@ -12,16 +12,16 @@ use rottlib::parser::Parser;
mod pretty;
// a * * *
/// Expressions to test.
///
/// Add, remove, or edit entries here.
/// Using `(&str, &str)` gives each case a human-readable label.
const TEST_CASES: &[(&str, &str)] = &[
("simple_add", "1 + 2 * 3"),
("member_call", "Foo.Bar(1, 2)"),
("index_member", "arr[5].X"),
("tagged_name", "Class'MyPackage.MyThing'"),
("broken_expr", "a + (]\n//AAA\n//BBB\n//CCC\n//DDD\n//EEE\n//FFF"),
("files/P0003_01.uc", "(a + b && c / d ^ e @ f"),
("files/P0003_02.uc", "(a]"),
("files/P0003_03.uc", "(a\n;"),
];
/// If true, print the parsed expression using Debug formatting.