Rename of files, improved for handling, add cb hints
- Rename Test to Ink as main file - Support more errors for for loops. - Add hints to cbs
This commit is contained in:
6
test/parse/for_i_loop.golden
Normal file
6
test/parse/for_i_loop.golden
Normal file
@@ -0,0 +1,6 @@
|
||||
(program
|
||||
(fun vertex vs_main
|
||||
[]
|
||||
(:= x 0)
|
||||
(for i : 0..10
|
||||
(+= x 1))))
|
||||
4
test/parse/for_i_one_liner.golden
Normal file
4
test/parse/for_i_one_liner.golden
Normal file
@@ -0,0 +1,4 @@
|
||||
[1;37mtest/for_i_one_liner.ink:3,0: [31merror: [37mUnable to parse statement here. 'for' currently expects a brace-enclosed block as a body.
|
||||
[96mfor i : 0..10 x += 2.0;
|
||||
^^^
|
||||
[36m[37m
|
||||
9
test/parse/for_no_iter.golden
Normal file
9
test/parse/for_no_iter.golden
Normal file
@@ -0,0 +1,9 @@
|
||||
[1;37mtest/for_no_iter.ink:3,9: [31merror: [37mExpected expression after '..'. Expected end of iterator.
|
||||
[96mfor i : 0.. {
|
||||
x += 2.0;
|
||||
^^
|
||||
[36m[37m[1;37mtest/for_no_iter.ink:3,0: [31merror: [37mUnable to parse statement here.
|
||||
[96mfor i : 0.. {
|
||||
x += 2.0;
|
||||
^^^
|
||||
[36m[37m
|
||||
@@ -1,4 +1,4 @@
|
||||
[1;37mtest/if_if_if.ink:2,3: [31merror: [37mExpected expression after 'if'.
|
||||
[1;37mtest/if_if_if.ink:2,0: [31merror: [37mExpected expression after 'if'. Expected if condition.
|
||||
[96mif if if 0 > 100 {
|
||||
^^
|
||||
^^
|
||||
[36m[37m
|
||||
Reference in New Issue
Block a user