diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-02-03 08:33:03 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-02-03 08:33:03 +0100 |
commit | f764568bc9c47069190475099cbe1dbe561f9fa4 (patch) | |
tree | fdeb49c17c9b7385e2e8d267e3a3e562f211c3cd /testdata | |
parent | 4584f989c6a306a7b433a38406403d9af042ca11 (diff) |
refactor literal parsing
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/Builtins.out | 20 | ||||
-rw-r--r-- | testdata/language-features/basic-values/def05.reject.out | 2 | ||||
-rw-r--r-- | testdata/language-features/basic-values/def06.reject.out | 2 | ||||
-rw-r--r-- | testdata/language-features/basic-values/redefine03.reject.out | 2 | ||||
-rw-r--r-- | testdata/language-features/guard/guard10.reject.out | 2 | ||||
-rw-r--r-- | testdata/listcompr01.reject.out | 2 |
6 files changed, 14 insertions, 16 deletions
diff --git a/testdata/Builtins.out b/testdata/Builtins.out index 6f407c39..7e947fa9 100644 --- a/testdata/Builtins.out +++ b/testdata/Builtins.out | |||
@@ -73,10 +73,8 @@ testdata/Builtins.lc 31:52-31:53 Type | |||
73 | testdata/Builtins.lc 31:54-31:55 Nat | 73 | testdata/Builtins.lc 31:54-31:55 Nat |
74 | testdata/Builtins.lc 33:29-33:32 Type | 74 | testdata/Builtins.lc 33:29-33:32 Type |
75 | testdata/Builtins.lc 34:5-34:14 Nat -> Type->Type | 75 | testdata/Builtins.lc 34:5-34:14 Nat -> Type->Type |
76 | testdata/Builtins.lc 34:15-34:16 Nat | ||
77 | testdata/Builtins.lc 34:15-35:60 Nat -> Type->Type | Type | Type->Type | ||
78 | testdata/Builtins.lc 34:21-34:22 Type | 76 | testdata/Builtins.lc 34:21-34:22 Type |
79 | testdata/Builtins.lc 34:21-35:60 Nat->Type | 77 | testdata/Builtins.lc 34:21-35:60 Nat -> Type->Type | Nat->Type | Type->Type |
80 | testdata/Builtins.lc 35:37-35:40 Nat -> Type->Type | 78 | testdata/Builtins.lc 35:37-35:40 Nat -> Type->Type |
81 | testdata/Builtins.lc 35:37-35:58 Type->Type | 79 | testdata/Builtins.lc 35:37-35:58 Type->Type |
82 | testdata/Builtins.lc 35:37-35:60 Nat->Type | Type | 80 | testdata/Builtins.lc 35:37-35:60 Nat->Type | Type |
@@ -589,7 +587,7 @@ testdata/Builtins.lc 110:20-112:12 ({a : Component V0} -> V1 -> V2 -> V3 -> Vec | |||
589 | testdata/Builtins.lc 110:20-113:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 | 587 | testdata/Builtins.lc 110:20-113:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 |
590 | testdata/Builtins.lc 110:20-114:19 {a : Component V0}->V1 -> {c : Component V1}->V2 | 588 | testdata/Builtins.lc 110:20-114:19 {a : Component V0}->V1 -> {c : Component V1}->V2 |
591 | testdata/Builtins.lc 110:20-115:17 {a : Component V0}->V1 -> {c : Component V1}->V2 | 589 | testdata/Builtins.lc 110:20-115:17 {a : Component V0}->V1 -> {c : Component V1}->V2 |
592 | testdata/Builtins.lc 110:20-136:33 Type | Type->Type | 590 | testdata/Builtins.lc 110:20-136:31 Type | Type->Type |
593 | testdata/Builtins.lc 110:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 | {a} -> {b : Component a} -> a -> a -> VecS a 2 | 591 | testdata/Builtins.lc 110:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 | {a} -> {b : Component a} -> a -> a -> VecS a 2 |
594 | testdata/Builtins.lc 110:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 | {a} -> {b : Component a} -> a -> a -> a -> VecS a 3 | 592 | testdata/Builtins.lc 110:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 | {a} -> {b : Component a} -> a -> a -> a -> VecS a 3 |
595 | testdata/Builtins.lc 110:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 | {a} -> {b : Component a} -> a -> a -> a -> a -> VecS a 4 | 593 | testdata/Builtins.lc 110:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 | {a} -> {b : Component a} -> a -> a -> a -> a -> VecS a 4 |
@@ -606,7 +604,7 @@ testdata/Builtins.lc 116:20-118:12 ({a : Component V0} -> V1 -> V2 -> V3 -> Vec | |||
606 | testdata/Builtins.lc 116:20-119:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 | 604 | testdata/Builtins.lc 116:20-119:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 |
607 | testdata/Builtins.lc 116:20-120:22 {a : Component V0}->V1 -> {c : Component V1}->V2 | 605 | testdata/Builtins.lc 116:20-120:22 {a : Component V0}->V1 -> {c : Component V1}->V2 |
608 | testdata/Builtins.lc 116:20-121:21 {a : Component V0}->V1 -> {c : Component V1}->V2 | 606 | testdata/Builtins.lc 116:20-121:21 {a : Component V0}->V1 -> {c : Component V1}->V2 |
609 | testdata/Builtins.lc 116:20-136:33 Type | 607 | testdata/Builtins.lc 116:20-136:31 Type |
610 | testdata/Builtins.lc 116:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 | 608 | testdata/Builtins.lc 116:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 |
611 | testdata/Builtins.lc 116:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 | 609 | testdata/Builtins.lc 116:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 |
612 | testdata/Builtins.lc 116:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 | 610 | testdata/Builtins.lc 116:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 |
@@ -627,7 +625,7 @@ testdata/Builtins.lc 123:20-125:12 ({a : Component V0} -> V1 -> V2 -> V3 -> Vec | |||
627 | testdata/Builtins.lc 123:20-126:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 | 625 | testdata/Builtins.lc 123:20-126:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 |
628 | testdata/Builtins.lc 123:20-127:23 {a : Component V0}->V1 -> {c : Component V1}->V2 | 626 | testdata/Builtins.lc 123:20-127:23 {a : Component V0}->V1 -> {c : Component V1}->V2 |
629 | testdata/Builtins.lc 123:20-128:22 {a : Component V0}->V1 -> {c : Component V1}->V2 | 627 | testdata/Builtins.lc 123:20-128:22 {a : Component V0}->V1 -> {c : Component V1}->V2 |
630 | testdata/Builtins.lc 123:20-136:33 Type | 628 | testdata/Builtins.lc 123:20-136:31 Type |
631 | testdata/Builtins.lc 123:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 | 629 | testdata/Builtins.lc 123:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 |
632 | testdata/Builtins.lc 123:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 | 630 | testdata/Builtins.lc 123:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 |
633 | testdata/Builtins.lc 123:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 | 631 | testdata/Builtins.lc 123:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 |
@@ -648,7 +646,7 @@ testdata/Builtins.lc 130:20-132:12 ({a : Component V0} -> V1 -> V2 -> V3 -> Vec | |||
648 | testdata/Builtins.lc 130:20-133:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 | 646 | testdata/Builtins.lc 130:20-133:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 |
649 | testdata/Builtins.lc 130:20-134:17 {a : Component V0}->V1 -> {c : Component V1}->V2 | 647 | testdata/Builtins.lc 130:20-134:17 {a : Component V0}->V1 -> {c : Component V1}->V2 |
650 | testdata/Builtins.lc 130:20-135:16 {a : Component V0}->V1 -> {c : Component V1}->V2 | 648 | testdata/Builtins.lc 130:20-135:16 {a : Component V0}->V1 -> {c : Component V1}->V2 |
651 | testdata/Builtins.lc 130:20-136:33 Type | 649 | testdata/Builtins.lc 130:20-136:31 Type |
652 | testdata/Builtins.lc 130:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 | 650 | testdata/Builtins.lc 130:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 |
653 | testdata/Builtins.lc 130:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 | 651 | testdata/Builtins.lc 130:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 |
654 | testdata/Builtins.lc 130:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 | 652 | testdata/Builtins.lc 130:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 |
@@ -659,7 +657,7 @@ testdata/Builtins.lc 132:10-132:12 {a} -> a -> a -> a -> VecS a 3 | |||
659 | testdata/Builtins.lc 133:10-133:12 {a} -> a -> a -> a -> a -> VecS a 4 | 657 | testdata/Builtins.lc 133:10-133:12 {a} -> a -> a -> a -> a -> VecS a 4 |
660 | testdata/Builtins.lc 134:14-134:17 Float | 658 | testdata/Builtins.lc 134:14-134:17 Float |
661 | testdata/Builtins.lc 135:13-135:16 Float | 659 | testdata/Builtins.lc 135:13-135:16 Float |
662 | testdata/Builtins.lc 136:26-136:33 Type | 660 | testdata/Builtins.lc 136:26-136:31 Type |
663 | testdata/Builtins.lc 136:26-157:12 ({a : Component V0} -> V1 -> V2 -> VecS V3 2) -> {e : Component V1} -> V2 -> V3 -> VecS V4 2 | 661 | testdata/Builtins.lc 136:26-157:12 ({a : Component V0} -> V1 -> V2 -> VecS V3 2) -> {e : Component V1} -> V2 -> V3 -> VecS V4 2 |
664 | testdata/Builtins.lc 136:26-158:12 ({a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3) -> {f : Component V1} -> V2 -> V3 -> V4 -> VecS V5 3 | 662 | testdata/Builtins.lc 136:26-158:12 ({a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3) -> {f : Component V1} -> V2 -> V3 -> V4 -> VecS V5 3 |
665 | testdata/Builtins.lc 136:26-159:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 | 663 | testdata/Builtins.lc 136:26-159:12 ({a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4) -> {g : Component V1} -> V2 -> V3 -> V4 -> V5 -> VecS V6 4 |
@@ -759,9 +757,9 @@ testdata/Builtins.lc 166:25-166:29 Type | |||
759 | testdata/Builtins.lc 168:7-168:15 Type->Type | 757 | testdata/Builtins.lc 168:7-168:15 Type->Type |
760 | testdata/Builtins.lc 170:25-170:30 Type | 758 | testdata/Builtins.lc 170:25-170:30 Type |
761 | testdata/Builtins.lc 170:25-174:39 Type | Type->Type | 759 | testdata/Builtins.lc 170:25-174:39 Type | Type->Type |
762 | testdata/Builtins.lc 171:31-171:38 Type | 760 | testdata/Builtins.lc 171:31-171:36 Type |
763 | testdata/Builtins.lc 171:31-174:39 Type | 761 | testdata/Builtins.lc 171:31-174:39 Type |
764 | testdata/Builtins.lc 174:30-174:39 Type | 762 | testdata/Builtins.lc 174:34-174:39 Type |
765 | testdata/Builtins.lc 184:6-184:20 Type | 763 | testdata/Builtins.lc 184:6-184:20 Type |
766 | testdata/Builtins.lc 184:6-199:23 Type | 764 | testdata/Builtins.lc 184:6-199:23 Type |
767 | testdata/Builtins.lc 185:7-185:12 BlendingFactor | 765 | testdata/Builtins.lc 185:7-185:12 BlendingFactor |
@@ -1593,7 +1591,7 @@ testdata/Builtins.lc 427:29-427:42 {a} -> {b} -> {c : DefaultFragOp b} -> Fragm | |||
1593 | testdata/Builtins.lc 427:46-427:63 Type->Type | 1591 | testdata/Builtins.lc 427:46-427:63 Type->Type |
1594 | testdata/Builtins.lc 427:46-427:65 Type | 1592 | testdata/Builtins.lc 427:46-427:65 Type |
1595 | testdata/Builtins.lc 427:64-427:65 Type | 1593 | testdata/Builtins.lc 427:64-427:65 Type |
1596 | testdata/Builtins.lc 428:37-428:44 Type | 1594 | testdata/Builtins.lc 428:37-428:42 Type |
1597 | testdata/Builtins.lc 428:37-428:112 ({a : DefaultFragOp V1} -> FragmentOperation V2) -> {c : DefaultFragOp V2} -> FragmentOperation V3 | 1595 | testdata/Builtins.lc 428:37-428:112 ({a : DefaultFragOp V1} -> FragmentOperation V2) -> {c : DefaultFragOp V2} -> FragmentOperation V3 |
1598 | testdata/Builtins.lc 428:37-429:36 Type | Type->Type | 1596 | testdata/Builtins.lc 428:37-429:36 Type | Type->Type |
1599 | testdata/Builtins.lc 428:37-429:77 {a : DefaultFragOp V1} -> FragmentOperation V2 | {a} -> {b : DefaultFragOp a} -> FragmentOperation a | 1597 | testdata/Builtins.lc 428:37-429:77 {a : DefaultFragOp V1} -> FragmentOperation V2 | {a} -> {b : DefaultFragOp a} -> FragmentOperation a |
diff --git a/testdata/language-features/basic-values/def05.reject.out b/testdata/language-features/basic-values/def05.reject.out index 616c6884..59c1b1c2 100644 --- a/testdata/language-features/basic-values/def05.reject.out +++ b/testdata/language-features/basic-values/def05.reject.out | |||
@@ -1,4 +1,4 @@ | |||
1 | "testdata/language-features/basic-values/def05.reject.lc" (line 4, column 1): | 1 | "testdata/language-features/basic-values/def05.reject.lc" (line 4, column 1): |
2 | unexpected end of input | 2 | unexpected end of input |
3 | expecting projection, swizzling, "@", char literal, literal string, float literal, "#", natural, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs or pattern | 3 | expecting projection, swizzling, "@", literal, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs or pattern |
4 | different number of arguments of fun at testdata/language-features/basic-values/def05.reject.lc 1:1-1:4 \ No newline at end of file | 4 | different number of arguments of fun at testdata/language-features/basic-values/def05.reject.lc 1:1-1:4 \ No newline at end of file |
diff --git a/testdata/language-features/basic-values/def06.reject.out b/testdata/language-features/basic-values/def06.reject.out index 79952277..852fa677 100644 --- a/testdata/language-features/basic-values/def06.reject.out +++ b/testdata/language-features/basic-values/def06.reject.out | |||
@@ -1,4 +1,4 @@ | |||
1 | "testdata/language-features/basic-values/def06.reject.lc" (line 5, column 1): | 1 | "testdata/language-features/basic-values/def06.reject.lc" (line 5, column 1): |
2 | unexpected end of input | 2 | unexpected end of input |
3 | expecting projection, swizzling, "@", char literal, literal string, float literal, "#", natural, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs or pattern | 3 | expecting projection, swizzling, "@", literal, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs or pattern |
4 | different number of arguments of fun2 at testdata/language-features/basic-values/def06.reject.lc 1:1-1:5 \ No newline at end of file | 4 | different number of arguments of fun2 at testdata/language-features/basic-values/def06.reject.lc 1:1-1:5 \ No newline at end of file |
diff --git a/testdata/language-features/basic-values/redefine03.reject.out b/testdata/language-features/basic-values/redefine03.reject.out index e0050e16..95b587a1 100644 --- a/testdata/language-features/basic-values/redefine03.reject.out +++ b/testdata/language-features/basic-values/redefine03.reject.out | |||
@@ -1,4 +1,4 @@ | |||
1 | "testdata/language-features/basic-values/redefine03.reject.lc" (line 4, column 1): | 1 | "testdata/language-features/basic-values/redefine03.reject.lc" (line 4, column 1): |
2 | unexpected end of input | 2 | unexpected end of input |
3 | expecting projection, swizzling, "@", char literal, literal string, float literal, "#", natural, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs or pattern | 3 | expecting projection, swizzling, "@", literal, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs or pattern |
4 | redefined x at testdata/language-features/basic-values/redefine03.reject.lc 2:9-2:10 \ No newline at end of file | 4 | redefined x at testdata/language-features/basic-values/redefine03.reject.lc 2:9-2:10 \ No newline at end of file |
diff --git a/testdata/language-features/guard/guard10.reject.out b/testdata/language-features/guard/guard10.reject.out index 5b95a423..be68325a 100644 --- a/testdata/language-features/guard/guard10.reject.out +++ b/testdata/language-features/guard/guard10.reject.out | |||
@@ -1,3 +1,3 @@ | |||
1 | "testdata/language-features/guard/guard10.reject.lc" (line 2, column 1): | 1 | "testdata/language-features/guard/guard10.reject.lc" (line 2, column 1): |
2 | unexpected '|' | 2 | unexpected '|' |
3 | expecting projection, swizzling, "@", char literal, literal string, float literal, "#", natural, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "|", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs, pattern or end of input \ No newline at end of file | 3 | expecting projection, swizzling, "@", literal, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "|", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs, pattern or end of input \ No newline at end of file |
diff --git a/testdata/listcompr01.reject.out b/testdata/listcompr01.reject.out index 94560015..81949c98 100644 --- a/testdata/listcompr01.reject.out +++ b/testdata/listcompr01.reject.out | |||
@@ -1,3 +1,3 @@ | |||
1 | "testdata/listcompr01.reject.lc" (line 6, column 42): | 1 | "testdata/listcompr01.reject.lc" (line 6, column 42): |
2 | unexpected ',' | 2 | unexpected ',' |
3 | expecting projection, swizzling, "@", char literal, literal string, float literal, "#", natural, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs, pattern or end of input \ No newline at end of file | 3 | expecting projection, swizzling, "@", literal, "_", "'", identifier, "[", "(", "{", "let", symbols, backquoted ident, "~", expression, lambda, "::", "->", "=>", "where", "data", "class", "instance", type family, type instance, "type", typed ident, "infix", "infixl", "infixr", operator definition, lhs, pattern or end of input \ No newline at end of file |