Maybe you did copy exactly i.e. without last new line.e_mattis wrote:@ L18L
Copied your code for in.bac to my system, ran '#bacon in.bac' in console. Returned error for the ''MISSING TO in FOR ..LINE 6" error. Corrected that, recompiled, got another error -Again, code copied directly from your post.Code: Select all
PROBLEM: file 'in.bac' line 7: PRINT array$[i] Cause: expected declaration or statement at end of input
Is it just my system?
I'm using precise 5.4.3, Geany, & urxvt terminal.
I'm also using precise 5.4.3, Geany, & urxvt terminal
and could reproduce the same error after deleting last empty line.
Code: Select all
# bacon ./in.bac
Converting './in.bac'... done.
Compiling './in.bac'... Compiler emits messages!
Problem:
file './in.bac' line 7: PRINT array$[i]
Cause:
expected declaration or statement at end of input
#
Thus the "all systems proof" method would be:vovchik wrote:PPS. I also have the situation with a newline being required at the end of the code - but not on all machines!
Always have a new line at end of code