1496
|
1 %{ |
|
2 |
|
3 enum octave_kw_id |
|
4 { |
|
5 all_va_args_kw, |
|
6 break_kw, |
2764
|
7 case_kw, |
1496
|
8 catch_kw, |
|
9 continue_kw, |
|
10 else_kw, |
|
11 elseif_kw, |
|
12 end_kw, |
|
13 end_try_catch_kw, |
|
14 end_unwind_protect_kw, |
|
15 endfor_kw, |
|
16 endfunction_kw, |
|
17 endif_kw, |
2764
|
18 endswitch_kw, |
1496
|
19 endwhile_kw, |
|
20 for_kw, |
|
21 function_kw, |
|
22 global_kw, |
|
23 gplot_kw, |
|
24 gsplot_kw, |
|
25 if_kw, |
3174
|
26 magic_file_kw, |
|
27 magic_line_kw, |
2764
|
28 otherwise_kw, |
1496
|
29 replot_kw, |
|
30 return_kw, |
2846
|
31 static_kw, |
2764
|
32 switch_kw, |
1496
|
33 try_kw, |
|
34 unwind_protect_kw, |
|
35 unwind_protect_cleanup_kw, |
|
36 while_kw |
|
37 }; |
|
38 |
|
39 %} |
2804
|
40 struct octave_kw { const char *name; int tok; octave_kw_id kw_id; }; |
1496
|
41 %% |
|
42 all_va_args, ALL_VA_ARGS, all_va_args_kw |
|
43 break, BREAK, break_kw |
2764
|
44 case, CASE, case_kw |
1496
|
45 catch, CATCH, catch_kw |
|
46 continue, CONTINUE, continue_kw |
|
47 else, ELSE, else_kw |
|
48 elseif, ELSEIF, elseif_kw |
|
49 end, END, end_kw |
|
50 end_try_catch, END, end_try_catch_kw |
|
51 end_unwind_protect, END, end_unwind_protect_kw |
|
52 endfor, END, endfor_kw |
|
53 endfunction, END, endfunction_kw |
|
54 endif, END, endif_kw |
2764
|
55 endswitch, END, endswitch_kw |
1496
|
56 endwhile, END, endwhile_kw |
|
57 for, FOR, for_kw |
|
58 function, FCN, function_kw |
|
59 global, GLOBAL, global_kw |
|
60 gplot, PLOT, gplot_kw |
|
61 gsplot, PLOT, gsplot_kw |
|
62 if, IF, if_kw |
2764
|
63 otherwise, OTHERWISE, otherwise_kw |
1496
|
64 replot, PLOT, replot_kw |
|
65 return, FUNC_RET, return_kw |
2846
|
66 static, STATIC, static_kw |
2764
|
67 switch, SWITCH, switch_kw |
1496
|
68 try, TRY, try_kw |
|
69 unwind_protect, UNWIND, unwind_protect_kw |
|
70 unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw |
|
71 while, WHILE, while_kw |
3174
|
72 __FILE__, TEXT, magic_file_kw |
|
73 __LINE__, NUM, magic_line_kw |