diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-06 02:21:17 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-06 02:21:17 +0000 |
| commit | 16e66a42ad716b73dda4318781aa93e83c636684 (patch) | |
| tree | b20f712f6c3610e9ff65cb2ce7b8461f8244bb30 /module-test | |
| parent | a41729222640456323f46110c113a318cd98243d (diff) | |
SCRIPTIOCONTINVA
Diffstat (limited to 'module-test')
| -rw-r--r-- | module-test/ast.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/module-test/ast.cc b/module-test/ast.cc index 1710f23..9d5b7b0 100644 --- a/module-test/ast.cc +++ b/module-test/ast.cc @@ -28,7 +28,7 @@ constexpr int MAXLINE = 1024; int main() { - int test_case = 6; + int test_case = 7; string s; switch (test_case) @@ -51,10 +51,19 @@ int main() case 5: s = "alpha || beta && (gamma || epsilon)"; break; + + // bracket matching test case 6: - // bracket matching test s = ")alpha && beta("; break; + + // basic scriptio continua + // syntax is wrong but just to test tokenizer + case 7: + s = "((alpha&|&&beta)||gamma&&&delta)"; + break; + + default: return 0; } |
