view test/nest/recursive_nest3.m @ 20579:52ce821a52fd

eliminate simple uses of error_state in parser and lexer * lex.ll, oct-parse.in.yy: Eliminate simple uses of global error_state variable.
author John W. Eaton <jwe@octave.org>
date Sat, 03 Oct 2015 16:21:58 -0400
parents be18c9e359bf
children
line wrap: on
line source

function x = recursive_nest3 ()
  y = 5;
  f (y);
  x = y;
  g (x);
  function f (y)
    y = 10;
  endfunction

  function g (x)
    x = 10;
  endfunction
endfunction