@@ -56,11 +56,11 @@ tests = [
56
56
" a ? b :\n c" => " (if a b c)"
57
57
" a ? b : c:d" => " (if a b (call-i c : d))"
58
58
# Following are errors but should recover
59
- " a? b : c" => " (if a (error) b c)"
60
- " a ?b : c" => " (if a (error) b c)"
61
- " a ? b: c" => " (if a b (error) c)"
62
- " a ? b :c" => " (if a b (error) c)"
63
- " a ? b c" => " (if a b (error) c)"
59
+ " a? b : c" => " (if a (error-t ) b c)"
60
+ " a ?b : c" => " (if a (error-t ) b c)"
61
+ " a ? b: c" => " (if a b (error-t ) c)"
62
+ " a ? b :c" => " (if a b (error-t ) c)"
63
+ " a ? b c" => " (if a b (error-t ) c)"
64
64
],
65
65
JuliaSyntax. parse_arrow => [
66
66
" x → y" => " (call-i x → y)"
@@ -142,8 +142,8 @@ tests = [
142
142
" (x-1)y" => " (call-i (call-i x - 1) * y)"
143
143
" 0xenomorph" => " 0x0e" # ie, not juxtoposition
144
144
# errors
145
- " \" a\"\" b\" " => " (call-i \" a\" * (error) \" b\" )"
146
- " \" a\" x" => " (call-i \" a\" * (error) x)"
145
+ " \" a\"\" b\" " => " (call-i \" a\" * (error-t ) \" b\" )"
146
+ " \" a\" x" => " (call-i \" a\" * (error-t ) x)"
147
147
],
148
148
JuliaSyntax. parse_unary => [
149
149
" +2" => " 2"
@@ -587,7 +587,7 @@ tests = [
587
587
" [x \n\n for a in as]" => " (comprehension (generator x (= a as)))"
588
588
# parse_generator
589
589
" [x for a = as for b = bs if cond1 for c = cs if cond2]" => " (comprehension (flatten x (= a as) (filter (= b bs) cond1) (filter (= c cs) cond2)))"
590
- " [(x)for x in xs]" => " (comprehension (generator x (error) (= x xs)))"
590
+ " [(x)for x in xs]" => " (comprehension (generator x (error-t ) (= x xs)))"
591
591
" (a for x in xs if cond)" => " (generator a (filter (= x xs) cond))"
592
592
" (xy for x in xs for y in ys)" => " (flatten xy (= x xs) (= y ys))"
593
593
" (xy for x in xs for y in ys for z in zs)" => " (flatten xy (= x xs) (= y ys) (= z zs))"
@@ -700,7 +700,7 @@ tests = [
700
700
" \"\" " => " \"\" "
701
701
" \"\"\"\n \"\"\" " => " \"\" "
702
702
# Missing delimiter
703
- " \" str" => " \" str\" (error)"
703
+ " \" str" => " \" str\" (error-t )"
704
704
# String interpolations
705
705
" \"\$ x\$ y\$ z\" " => " (string x y z)"
706
706
" \"\$ (x)\" " => " (string x)"
0 commit comments