(394) -> for i in 1..10 repeat (print i; print(i^2);)
  Line   1: for i in 1..10 repeat (print i; print(i^2);)
           ...........................................A
  Error  A: syntax error at top level
  Error  A: Improper syntax.
   2 error(s) parsing

Maybe it is more obvious in the above form that an empty statement is there. Originally it was something like this:

for i in 1..10 repeat
  print i;
  print(i^2);

in a .input file.

This

for i in 1..10 repeat ()

works just fine, so why doesn't the one at the beginning?
I think, it should be allowed to have one trailing semicolon. No?

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/3bddc1f0-2a2f-9e0c-bfee-2089e3d54918%40hemmecke.org.

Reply via email to