Added test program containing errors
[voodoo-lang.git] / test / errors.voo
blobd0916a3d8e995911d44679c92a1fb7e920ad406a
1 # Program containing errors, to test error reporting.
3 # A directive that does not exist
4 wrongdirective
6 # Section name must be a symbol or a string
7 section 12
9 # A value must be provided for x
10 let x
12 # Too many parameters to add
13 set y add 1 2 3
15 # Let not allowed directly inside if
16 iflt 2 3
17     let x add 2 3
18 end if
20 # Function not allowed inside function
21 function foo
22     function bar x
23         return x
24     end function
25 end function
27 # At-expression should have a number or a symbol
28 add 2 @"wrong"