aboutsummaryrefslogtreecommitdiff
path: root/module-test
diff options
context:
space:
mode:
Diffstat (limited to 'module-test')
-rw-r--r--module-test/ast.cc13
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;
}