incorrect parsing across lines

View: New views
2 Messages — Rating Filter:   Alert me  

incorrect parsing across lines

by G.. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In octave-3.1, parsing across lines doesn't work as expected:

3.0 gives  (the '#' is essential)
--------------
octave:1> #
octave:1> x = {
> pi
> }
x =

{
  [1,1] =  3.1416
}
--------------

whereas in 3.1.51
--------------
octave:1> #
octave:1> x = {
octave:1> pi
ans =  3.1416
octave:2> }
parse error:

  syntax error

>>> }
    ^

incorrect parsing across lines

by John W. Eaton-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 22-Jan-2009, G.. wrote:

|
| In octave-3.1, parsing across lines doesn't work as expected:

There is no "octave-3.1".  Precisely what version are you using?

| 3.0 gives  (the '#' is essential)
| --------------
| octave:1> #
| octave:1> x = {
| > pi
| > }
| x =
|
| {
|   [1,1] =  3.1416
| }
| --------------
|
| whereas in 3.1.51
| --------------
| octave:1> #
| octave:1> x = {
| octave:1> pi
| ans =  3.1416
| octave:2> }
| parse error:
|
|   syntax error
|
| >>> }
|     ^

This problem is fixed in the current sources in the Mercurial archive
at savannah.

jwe
_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave