Re: [Scilab-users] Comments in a multiline literal array definition

2018-04-23 Thread Samuel Gougeon

Le 23/04/2018 à 10:49, Clément David a écrit :

Hello Samuel,

This seems to be a regression on the parser, could you post a bug please ?


Done @ http://bugzilla.scilab.org/15552

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Comments in a multiline literal array definition

2018-04-23 Thread Clément David
Hello Samuel,

This seems to be a regression on the parser, could you post a bug please ?

--
Clément

Le samedi 14 avril 2018 à 13:44 +0200, Samuel Gougeon a écrit :
> Hello,
> Before possibly posting a bug report, i would like to know if the following 
> change from Scilab
> 5.5.2 to 6.0.0 is an expected restriction, or an unexpected one -- so a bug.
> Scilab 5.5.2 accepts the following:
> -->a = [
> -->1  // line #1
> -->2, // line #2
> -->]
>  a  =
> 1.  
> 2.  
> while Scilab 6.0.0 does not:
> --> a = [
>   > 1 // line #1
>   > 2, // line #2
>   > ]
> 2, // line #2
>  ^
> Error: syntax error, unexpected line comment
> Please note that the appended comment passes if it does not follow a comma.
> And that an error is generated even if the last row does not end with a comma.
> --> a = [
>   > 1, // line #1
>   > 2]
> 1, // line #1
>  ^
> Error: syntax error, unexpected line comment
> 
> Regards
> Samuel
> 
> 
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Comments in a multiline literal array definition

2018-04-14 Thread Samuel Gougeon

Hello,

Before possibly posting a bug report, i would like to know if the 
following change from Scilab 5.5.2 to 6.0.0 is an expected restriction, 
or an unexpected one -- so a bug.


Scilab 5.5.2 accepts the following:

-->a = [
-->1  // line #1
-->2, // line #2
-->]
 a  =
1.
2.

while Scilab 6.0.0 does not:

--> a = [
  > 1 // line #1
  > 2, // line #2
  > ]
2, // line #2
 ^
Error: syntax error, unexpected line comment

Please note that the appended comment passes if it does not follow a comma.
And that an error is generated even if the last row does not end with a 
comma.


--> a = [
  > 1, // line #1
  > 2]
1, // line #1
 ^
Error: syntax error, unexpected line comment

Regards
Samuel



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users