octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41032] Command function parsing: does handle


From: Michael C. Grant
Subject: [Octave-bug-tracker] [bug #41032] Command function parsing: does handle certain patterns involving commas as parentheses
Date: Mon, 30 Dec 2013 07:44:16 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11

Follow-up Comment #4, bug #41032 (project octave):

Commands can indeed be continued across lines. I do not have a precise rule
set for you, but I will look. It does appear that parentheses behave as a sort
of relaxed quotation operator. When single quotes are used, they must be
matched, or an error will occur; but if parentheses are not matched, the token
ends without error. On the other hand, quotes *within* parentheses need not be
matched. 

Here are some strange corner cases.

>> command_test1 this'is
 command_test1 this'is
               |
Error: A MATLAB string constant is not terminated properly.
 
>> command_test1 this'is'
{thisis}
>> command_test1 this(is
{this(is}
>> command_test1 this(is)
{this(is)}
>> command_test1 this(is ....
a test
{this(is }{a}{test}
>> command_test1 this(')
{this(')}
>> command_test1 this('''')
{this('''')}
>> command_test1 this('
{this('}




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41032>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]