octave-maintainers
[Top][All Lists]
Advanced

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

Changes in parser for debugging compatibility


From: John W. Eaton
Subject: Changes in parser for debugging compatibility
Date: Fri, 04 Jan 2008 21:41:11 -0500

On  4-Jan-2008, John Swensen wrote:

| I a quite unfamiliar with how the parser works, so forgive my  
| ignorance.  However, I do want to start working more on making the CLI  
| debugging interface compatible and am wondering how this might affect  
| the parser.  Currently, the functions for debugging (dbstop, dbclear,  
| etc) are functions that accept parameter lists like you would expect a  
| function to do.  However, in Matlab they allow syntax of the form:
| dbstop in name_of_function
| or
| dbstop in name_of_function at 10
| etc., etc.
| 
| Is the interpreter already set up to allow function calls like this?   
| If so how?  It looks like there was a light discussion concerning this  
| back in 2004 (see 
http://www.nabble.com/Multi-line-commands-in-debug-mode-to9230910.html) 
| , but I'm not sure if anything was decided.
| 

See DEFCMD and the octave_value_list::make_argv method and the way
they are used for functions like mkdir in src/dirfns.cc.  If you must
also accept arguments that are not character strings, make_argv might
not be as useful.

jwe


reply via email to

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