Mercurial > octave-dspies
comparison src/lex.l @ 5088:7830f271a53f
[project @ 2004-12-01 19:54:45 by jwe]
author | jwe |
---|---|
date | Wed, 01 Dec 2004 19:54:45 +0000 |
parents | ec98115062d1 |
children | b04b30d30c66 |
comparison
equal
deleted
inserted
replaced
5087:7497a16d90f9 | 5088:7830f271a53f |
---|---|
1211 } | 1211 } |
1212 } | 1212 } |
1213 | 1213 |
1214 int len = s.length (); | 1214 int len = s.length (); |
1215 | 1215 |
1216 const octave_kw *kw = octave_kw_lookup (s.c_str (), len); | 1216 const octave_kw *kw = octave_kw_hash::in_word_set (s.c_str (), len); |
1217 | 1217 |
1218 if (kw) | 1218 if (kw) |
1219 { | 1219 { |
1220 yylval.tok_val = 0; | 1220 yylval.tok_val = 0; |
1221 | 1221 |
2686 } | 2686 } |
2687 | 2687 |
2688 bool | 2688 bool |
2689 is_keyword (const std::string& s) | 2689 is_keyword (const std::string& s) |
2690 { | 2690 { |
2691 return octave_kw_lookup (s.c_str (), s.length ()) != 0; | 2691 return octave_kw_hash::in_word_set (s.c_str (), s.length ()) != 0; |
2692 } | 2692 } |
2693 | 2693 |
2694 DEFCMD (iskeyword, args, , | 2694 DEFCMD (iskeyword, args, , |
2695 "-*- texinfo -*-\n\ | 2695 "-*- texinfo -*-\n\ |
2696 @deftypefn {Built-in Function} {} iskeyword (@var{name})\n\ | 2696 @deftypefn {Built-in Function} {} iskeyword (@var{name})\n\ |