Mercurial > octave-libgccjit
diff src/parse.y @ 7787:6b521b1e3631
Add dbquit and make dbstep compatible. Use parser in debug mode to handle multi-line input
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 13 May 2008 21:12:12 +0200 |
parents | 5adeea5de26c |
children | 5861b95e9879 |
line wrap: on
line diff
--- a/src/parse.y Tue May 20 16:49:02 2008 -0400 +++ b/src/parse.y Tue May 13 21:12:12 2008 +0200 @@ -2216,11 +2216,20 @@ int l = return_tok->line (); int c = return_tok->column (); - if (lexer_flags.defining_func || reading_script_file - || evaluating_function_body) - retval = new tree_return_command (l, c); + if (Vdebugging) + { + Vdebugging = false; + + retval = new tree_no_op_command ("return", l, c); + } else - retval = new tree_no_op_command ("return", l, c); + { + if (lexer_flags.defining_func || reading_script_file + || evaluating_function_body) + retval = new tree_return_command (l, c); + else + retval = new tree_no_op_command ("return", l, c); + } return retval; }