diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-08 12:26:46 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-08 12:26:46 +0000 |
| commit | bb39c49a0dbfd0ee05ec5ac3bba96916b175fa92 (patch) | |
| tree | e6b733751391ffd927c4c9ea3ec36b8c58de874e /module-test/ast.cc | |
| parent | 4464bc5ba664aa1acda674df76fda7524bc16726 (diff) | |
add guard system
Diffstat (limited to 'module-test/ast.cc')
| -rw-r--r-- | module-test/ast.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/module-test/ast.cc b/module-test/ast.cc index 53f3b12..60d4b22 100644 --- a/module-test/ast.cc +++ b/module-test/ast.cc @@ -28,7 +28,7 @@ constexpr int MAXLINE = 1024; int main() { - int test_case = 7; + int test_case = 10; string s; switch (test_case) @@ -63,13 +63,20 @@ int main() s = "((alpha&|&&beta)||gamma&&&delta)"; break; - // guard test + // simple guard test case 8: - s = "\'foo\' && \"bar\""; + s = "\'text\' &&"; break; + // guard test case 9: - s = "&(alpha)"; + s = "\'realOperator\' && \"fake&&\" real ||"; + break; + + // guard test + // with space + case 10: + s = "\'This should be 1 token\' symbol && text \'&&\'"; break; default: |
