summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-03 08:33:03 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-03 08:33:03 +0100
commitf764568bc9c47069190475099cbe1dbe561f9fa4 (patch)
treefdeb49c17c9b7385e2e8d267e3a3e562f211c3cd /testdata
parent4584f989c6a306a7b433a38406403d9af042ca11 (diff)
refactor literal parsing
Diffstat (limited to 'testdata')
-rw-r--r--testdata/Builtins.out20
-rw-r--r--testdata/language-features/basic-values/def05.reject.out2
-rw-r--r--testdata/language-features/basic-values/def06.reject.out2
-rw-r--r--testdata/language-features/basic-values/redefine03.reject.out2
-rw-r--r--testdata/language-features/guard/guard10.reject.out2
-rw-r--r--testdata/listcompr01.reject.out2
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
73testdata/Builtins.lc 31:54-31:55 Nat 73testdata/Builtins.lc 31:54-31:55 Nat
74testdata/Builtins.lc 33:29-33:32 Type 74testdata/Builtins.lc 33:29-33:32 Type
75testdata/Builtins.lc 34:5-34:14 Nat -> Type->Type 75testdata/Builtins.lc 34:5-34:14 Nat -> Type->Type
76testdata/Builtins.lc 34:15-34:16 Nat
77testdata/Builtins.lc 34:15-35:60 Nat -> Type->Type | Type | Type->Type
78testdata/Builtins.lc 34:21-34:22 Type 76testdata/Builtins.lc 34:21-34:22 Type
79testdata/Builtins.lc 34:21-35:60 Nat->Type 77testdata/Builtins.lc 34:21-35:60 Nat -> Type->Type | Nat->Type | Type->Type
80testdata/Builtins.lc 35:37-35:40 Nat -> Type->Type 78testdata/Builtins.lc 35:37-35:40 Nat -> Type->Type
81testdata/Builtins.lc 35:37-35:58 Type->Type 79testdata/Builtins.lc 35:37-35:58 Type->Type
82testdata/Builtins.lc 35:37-35:60 Nat->Type | Type 80testdata/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
589testdata/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 587testdata/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
590testdata/Builtins.lc 110:20-114:19 {a : Component V0}->V1 -> {c : Component V1}->V2 588testdata/Builtins.lc 110:20-114:19 {a : Component V0}->V1 -> {c : Component V1}->V2
591testdata/Builtins.lc 110:20-115:17 {a : Component V0}->V1 -> {c : Component V1}->V2 589testdata/Builtins.lc 110:20-115:17 {a : Component V0}->V1 -> {c : Component V1}->V2
592testdata/Builtins.lc 110:20-136:33 Type | Type->Type 590testdata/Builtins.lc 110:20-136:31 Type | Type->Type
593testdata/Builtins.lc 110:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 | {a} -> {b : Component a} -> a -> a -> VecS a 2 591testdata/Builtins.lc 110:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 | {a} -> {b : Component a} -> a -> a -> VecS a 2
594testdata/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 592testdata/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
595testdata/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 593testdata/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
606testdata/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 604testdata/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
607testdata/Builtins.lc 116:20-120:22 {a : Component V0}->V1 -> {c : Component V1}->V2 605testdata/Builtins.lc 116:20-120:22 {a : Component V0}->V1 -> {c : Component V1}->V2
608testdata/Builtins.lc 116:20-121:21 {a : Component V0}->V1 -> {c : Component V1}->V2 606testdata/Builtins.lc 116:20-121:21 {a : Component V0}->V1 -> {c : Component V1}->V2
609testdata/Builtins.lc 116:20-136:33 Type 607testdata/Builtins.lc 116:20-136:31 Type
610testdata/Builtins.lc 116:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 608testdata/Builtins.lc 116:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2
611testdata/Builtins.lc 116:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 609testdata/Builtins.lc 116:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3
612testdata/Builtins.lc 116:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 610testdata/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
627testdata/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 625testdata/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
628testdata/Builtins.lc 123:20-127:23 {a : Component V0}->V1 -> {c : Component V1}->V2 626testdata/Builtins.lc 123:20-127:23 {a : Component V0}->V1 -> {c : Component V1}->V2
629testdata/Builtins.lc 123:20-128:22 {a : Component V0}->V1 -> {c : Component V1}->V2 627testdata/Builtins.lc 123:20-128:22 {a : Component V0}->V1 -> {c : Component V1}->V2
630testdata/Builtins.lc 123:20-136:33 Type 628testdata/Builtins.lc 123:20-136:31 Type
631testdata/Builtins.lc 123:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 629testdata/Builtins.lc 123:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2
632testdata/Builtins.lc 123:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 630testdata/Builtins.lc 123:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3
633testdata/Builtins.lc 123:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 631testdata/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
648testdata/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 646testdata/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
649testdata/Builtins.lc 130:20-134:17 {a : Component V0}->V1 -> {c : Component V1}->V2 647testdata/Builtins.lc 130:20-134:17 {a : Component V0}->V1 -> {c : Component V1}->V2
650testdata/Builtins.lc 130:20-135:16 {a : Component V0}->V1 -> {c : Component V1}->V2 648testdata/Builtins.lc 130:20-135:16 {a : Component V0}->V1 -> {c : Component V1}->V2
651testdata/Builtins.lc 130:20-136:33 Type 649testdata/Builtins.lc 130:20-136:31 Type
652testdata/Builtins.lc 130:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2 650testdata/Builtins.lc 130:20-157:12 {a : Component V0} -> V1 -> V2 -> VecS V3 2
653testdata/Builtins.lc 130:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3 651testdata/Builtins.lc 130:20-158:12 {a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3
654testdata/Builtins.lc 130:20-159:12 {a : Component V0} -> V1 -> V2 -> V3 -> V4 -> VecS V5 4 652testdata/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
659testdata/Builtins.lc 133:10-133:12 {a} -> a -> a -> a -> a -> VecS a 4 657testdata/Builtins.lc 133:10-133:12 {a} -> a -> a -> a -> a -> VecS a 4
660testdata/Builtins.lc 134:14-134:17 Float 658testdata/Builtins.lc 134:14-134:17 Float
661testdata/Builtins.lc 135:13-135:16 Float 659testdata/Builtins.lc 135:13-135:16 Float
662testdata/Builtins.lc 136:26-136:33 Type 660testdata/Builtins.lc 136:26-136:31 Type
663testdata/Builtins.lc 136:26-157:12 ({a : Component V0} -> V1 -> V2 -> VecS V3 2) -> {e : Component V1} -> V2 -> V3 -> VecS V4 2 661testdata/Builtins.lc 136:26-157:12 ({a : Component V0} -> V1 -> V2 -> VecS V3 2) -> {e : Component V1} -> V2 -> V3 -> VecS V4 2
664testdata/Builtins.lc 136:26-158:12 ({a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3) -> {f : Component V1} -> V2 -> V3 -> V4 -> VecS V5 3 662testdata/Builtins.lc 136:26-158:12 ({a : Component V0} -> V1 -> V2 -> V3 -> VecS V4 3) -> {f : Component V1} -> V2 -> V3 -> V4 -> VecS V5 3
665testdata/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 663testdata/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
759testdata/Builtins.lc 168:7-168:15 Type->Type 757testdata/Builtins.lc 168:7-168:15 Type->Type
760testdata/Builtins.lc 170:25-170:30 Type 758testdata/Builtins.lc 170:25-170:30 Type
761testdata/Builtins.lc 170:25-174:39 Type | Type->Type 759testdata/Builtins.lc 170:25-174:39 Type | Type->Type
762testdata/Builtins.lc 171:31-171:38 Type 760testdata/Builtins.lc 171:31-171:36 Type
763testdata/Builtins.lc 171:31-174:39 Type 761testdata/Builtins.lc 171:31-174:39 Type
764testdata/Builtins.lc 174:30-174:39 Type 762testdata/Builtins.lc 174:34-174:39 Type
765testdata/Builtins.lc 184:6-184:20 Type 763testdata/Builtins.lc 184:6-184:20 Type
766testdata/Builtins.lc 184:6-199:23 Type 764testdata/Builtins.lc 184:6-199:23 Type
767testdata/Builtins.lc 185:7-185:12 BlendingFactor 765testdata/Builtins.lc 185:7-185:12 BlendingFactor
@@ -1593,7 +1591,7 @@ testdata/Builtins.lc 427:29-427:42 {a} -> {b} -> {c : DefaultFragOp b} -> Fragm
1593testdata/Builtins.lc 427:46-427:63 Type->Type 1591testdata/Builtins.lc 427:46-427:63 Type->Type
1594testdata/Builtins.lc 427:46-427:65 Type 1592testdata/Builtins.lc 427:46-427:65 Type
1595testdata/Builtins.lc 427:64-427:65 Type 1593testdata/Builtins.lc 427:64-427:65 Type
1596testdata/Builtins.lc 428:37-428:44 Type 1594testdata/Builtins.lc 428:37-428:42 Type
1597testdata/Builtins.lc 428:37-428:112 ({a : DefaultFragOp V1} -> FragmentOperation V2) -> {c : DefaultFragOp V2} -> FragmentOperation V3 1595testdata/Builtins.lc 428:37-428:112 ({a : DefaultFragOp V1} -> FragmentOperation V2) -> {c : DefaultFragOp V2} -> FragmentOperation V3
1598testdata/Builtins.lc 428:37-429:36 Type | Type->Type 1596testdata/Builtins.lc 428:37-429:36 Type | Type->Type
1599testdata/Builtins.lc 428:37-429:77 {a : DefaultFragOp V1} -> FragmentOperation V2 | {a} -> {b : DefaultFragOp a} -> FragmentOperation a 1597testdata/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):
2unexpected end of input 2unexpected end of input
3expecting 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 3expecting 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
4different number of arguments of fun at testdata/language-features/basic-values/def05.reject.lc 1:1-1:4 \ No newline at end of file 4different 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):
2unexpected end of input 2unexpected end of input
3expecting 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 3expecting 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
4different number of arguments of fun2 at testdata/language-features/basic-values/def06.reject.lc 1:1-1:5 \ No newline at end of file 4different 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):
2unexpected end of input 2unexpected end of input
3expecting 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 3expecting 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
4redefined x at testdata/language-features/basic-values/redefine03.reject.lc 2:9-2:10 \ No newline at end of file 4redefined 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):
2unexpected '|' 2unexpected '|'
3expecting 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 3expecting 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):
2unexpected ',' 2unexpected ','
3expecting 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 3expecting 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