syntax error (Release Announcements)
Running on 6 core AMD under Ubuntu 12.04
I keep getting (a variety of) syntax errors alerts that I can't explain. Any help would be appreciated.
This example code below that I took from basic256.org results in the output:
Syntax error on line 4 around column 6. It seems that the error msg often points to the opening parenthesis.
Anybody a hint?
Secondly it's a drag that the editor has no line numbers, especially with longer programs.
# Game Dice Roller
print "die roller"
s = get("sides on the die",6)
n = get("number of die", 2)
total = 0
for x = 1 to n
d = die(s)
total = total + d
print "total "+ total
function get(message$, default)
# get a number - if they enter zero
# or enter default to another value
input message$ + " (default " + default + ") ?", n
if n = 0 then n = default
# roll a die and return 1 to sides