comparison libinterp/parse-tree/lex.ll @ 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 e679dc89e64b
children e34692daf663
comparison
equal deleted inserted replaced
20578:2f8500ca91d3 20579:52ce821a52fd
1908 octave_value retval; 1908 octave_value retval;
1909 1909
1910 int argc = args.length () + 1; 1910 int argc = args.length () + 1;
1911 1911
1912 string_vector argv = args.make_argv ("iskeyword"); 1912 string_vector argv = args.make_argv ("iskeyword");
1913
1914 if (error_state)
1915 return retval;
1916 1913
1917 if (argc == 1) 1914 if (argc == 1)
1918 { 1915 {
1919 // Neither set and get are keywords. See the note in the 1916 // Neither set and get are keywords. See the note in the
1920 // is_keyword function for additional details. 1917 // is_keyword function for additional details.