I have been exploring the vala/genie programming language
used in Woof
http://live.gnome.org/Genie
I have been able to compile some of Barrys examples
http://puppylinux.com/genie/
now this:
Code: Select all
init
a:array of string = {"abc", "def", "xyz"}
for s in a
print(s)
which is more errors then I can cope with . . .# valac v5.gs
v5.c: In function '_main':
v5.c:34: error: stray '\' in program
v5.c:34:40: warning: missing terminating " character
v5.c:34: error: missing terminating " character
v5.c:34: error: 'n' undeclared (first use in this function)
v5.c:34: error: (Each undeclared identifier is reported only once
v5.c:34: error: for each function it appears in.)
v5.c:35: error: expected ')' before '_tmp2'
v5.c:37: error: expected ')' before '}' token
v5.c:37: error: expected ';' before '}' token
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
#
I am pretty sure it is something to do with the tab
ending the program (python does this too)
but can not solve it.
HELP!