From b798ac29c37299b2f761243ae92ab8f7c4c4d7f1 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Tue, 30 Oct 2018 15:32:56 +0100 Subject: Initial commit --- tests/pracownia1/parse_error.xi | 75 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 tests/pracownia1/parse_error.xi (limited to 'tests/pracownia1/parse_error.xi') diff --git a/tests/pracownia1/parse_error.xi b/tests/pracownia1/parse_error.xi new file mode 100644 index 0000000..7bc8eee --- /dev/null +++ b/tests/pracownia1/parse_error.xi @@ -0,0 +1,75 @@ +x:int + +main(x:int y:int) +{ +} + +main() int int { + +} + +main() +{ + (x:int, y:int) = pair() +} + +pair(): int, int +{ + return (0,0) +} + +f() +{ + return 1; + x = 1 +} + +f() +{ + x = '' +} + +f() +{ + x = 'ab' +} + +f() +{ + x = ' +' +} + +f() +{ + x = '\a' +} + +f() +{ + x = "a +b" +} + +f() +{ + x = "a\tb" +} + +f() +{ + while cond return 1 +} + +f() +{ + if cond return 1 +} + +f() +{ + if cond return 1 else z = 1 +} + +//@PRACOWNIA +//@should_not_parse -- cgit 1.4.1