view src/octave.gperf @ 5102:b04b30d30c66

[project @ 2004-12-28 01:59:05 by jwe]
author jwe
date Tue, 28 Dec 2004 01:59:05 +0000
parents 7830f271a53f
children bd32f770c09a
line wrap: on
line source

%{

enum octave_kw_id
{
  all_va_args_kw,
  break_kw,
  case_kw,
  catch_kw,
  continue_kw,
  do_kw,
  else_kw,
  elseif_kw,
  end_kw,
  end_try_catch_kw,
  end_unwind_protect_kw,
  endfor_kw,
  endfunction_kw,
  endif_kw,
  endswitch_kw,
  endwhile_kw,
  for_kw,
  function_kw,
  global_kw,
  if_kw,
  magic_file_kw,
  magic_line_kw,
  otherwise_kw,
  return_kw,
  static_kw,
  switch_kw,
  try_kw,
  until_kw,
  unwind_protect_kw,
  unwind_protect_cleanup_kw,
  varargin_kw,
  varargout_kw,
  while_kw
};

%}

struct octave_kw { const char *name; int tok; octave_kw_id kw_id; };
%%
all_va_args, ALL_VA_ARGS, all_va_args_kw
break, BREAK, break_kw
case, CASE, case_kw
catch, CATCH, catch_kw
continue, CONTINUE, continue_kw
do, DO, do_kw
else, ELSE, else_kw
elseif, ELSEIF, elseif_kw
end, END, end_kw
end_try_catch, END, end_try_catch_kw
end_unwind_protect, END, end_unwind_protect_kw
endfor, END, endfor_kw
endfunction, END, endfunction_kw
endif, END, endif_kw
endswitch, END, endswitch_kw
endwhile, END, endwhile_kw
for, FOR, for_kw
function, FCN, function_kw
global, GLOBAL, global_kw
if, IF, if_kw
otherwise, OTHERWISE, otherwise_kw
persistent, STATIC, static_kw
return, FUNC_RET, return_kw
static, STATIC, static_kw
switch, SWITCH, switch_kw
try, TRY, try_kw
until, UNTIL, until_kw
unwind_protect, UNWIND, unwind_protect_kw
unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw
varargin, VARARGIN, varargin_kw
varargout, VARARGOUT, varargout_kw
while, WHILE, while_kw
__FILE__, STRING, magic_file_kw
__LINE__, NUM, magic_line_kw