Forum
1.8.1 error unexpected token 'ELSEIF' - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16)
+---- Thread: 1.8.1 error unexpected token 'ELSEIF' (/showthread.php?tid=838)



1.8.1 error unexpected token 'ELSEIF' - ximokom - 02-07-2018

Estaba compilando correctamente con la version estable 1.7.2 y al actualizar a la version 1.8.1 en desarrollo me sale esto: Alguna idea?
Was compiling correctly with the stable version 1.7.2 and update to the version 1.8.1 in development I get this: any idea?

if n=0 then c="\a"
elseif n=1 then c="\{i6}\b" -->error unexpected token 'ELSEIF'
elseif n=2 then c="\{i2}\c"
end if


Re: 1.8.1 error unexpected token 'ELSEIF' - LCD - 02-08-2018

Have you tried with newlines?
Code:
if n=0 then
  c="\a"
elseif n=1 then
  c="\{i6}\b"
elseif n=2 then
  c="\{i2}\c"
end if



Re: 1.8.1 error unexpected token 'ELSEIF' - boriel - 02-22-2018

True. "ELSEIF" requires newlines.
Rolleyes