Mercurial > hg > octave-nkf
comparison libinterp/parse-tree/lex.ll @ 16278:ea78011f66bf classdef
maint: periodic merge of default to classdef
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 11 Mar 2013 15:12:33 -0400 |
parents | 26fd237a3427 8cb65fd72164 |
children | 0dc6731fc0da |
comparison
equal
deleted
inserted
replaced
16276:26fd237a3427 | 16278:ea78011f66bf |
---|---|
1483 looking_at_object_index.push_front (false); | 1483 looking_at_object_index.push_front (false); |
1484 | 1484 |
1485 while (! parsed_function_name.empty ()) | 1485 while (! parsed_function_name.empty ()) |
1486 parsed_function_name.pop (); | 1486 parsed_function_name.pop (); |
1487 | 1487 |
1488 pending_local_variables.clear (); | |
1489 | |
1490 nesting_level.reset (); | 1488 nesting_level.reset (); |
1491 | 1489 |
1492 tokens.clear (); | 1490 tokens.clear (); |
1493 } | 1491 } |
1494 | 1492 |
2051 | 2049 |
2052 return kw->tok; | 2050 return kw->tok; |
2053 } | 2051 } |
2054 | 2052 |
2055 return 0; | 2053 return 0; |
2056 } | |
2057 | |
2058 bool | |
2059 octave_lexer::is_variable (const std::string& name) | |
2060 { | |
2061 return (symbol_table::is_variable (name) | |
2062 || (pending_local_variables.find (name) | |
2063 != pending_local_variables.end ())); | |
2064 } | 2054 } |
2065 | 2055 |
2066 bool | 2056 bool |
2067 octave_lexer::whitespace_is_significant (void) | 2057 octave_lexer::whitespace_is_significant (void) |
2068 { | 2058 { |