Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
100644 51 lines (49 sloc) 2.211 kb
e0d6430 @mimaki add mruby sources
mimaki authored
1 %{
2 struct kwtable {const char *name; int id[2]; enum mrb_lex_state_enum state;};
3 const struct kwtable *mrb_reserved_word(const char *, unsigned int);
4 static const struct kwtable *reserved_word(const char *, unsigned int);
5 #define mrb_reserved_word(str, len) reserved_word(str, len)
6 %}
8 struct kwtable;
9 %%
10 __ENCODING__, {keyword__ENCODING__, keyword__ENCODING__}, EXPR_END
11 __LINE__, {keyword__LINE__, keyword__LINE__}, EXPR_END
12 __FILE__, {keyword__FILE__, keyword__FILE__}, EXPR_END
13 BEGIN, {keyword_BEGIN, keyword_BEGIN}, EXPR_END
14 END, {keyword_END, keyword_END}, EXPR_END
15 alias, {keyword_alias, keyword_alias}, EXPR_FNAME
16 and, {keyword_and, keyword_and}, EXPR_VALUE
17 begin, {keyword_begin, keyword_begin}, EXPR_BEG
18 break, {keyword_break, keyword_break}, EXPR_MID
19 case, {keyword_case, keyword_case}, EXPR_VALUE
20 class, {keyword_class, keyword_class}, EXPR_CLASS
21 def, {keyword_def, keyword_def}, EXPR_FNAME
22 do, {keyword_do, keyword_do}, EXPR_BEG
23 else, {keyword_else, keyword_else}, EXPR_BEG
24 elsif, {keyword_elsif, keyword_elsif}, EXPR_VALUE
25 end, {keyword_end, keyword_end}, EXPR_END
26 ensure, {keyword_ensure, keyword_ensure}, EXPR_BEG
27 false, {keyword_false, keyword_false}, EXPR_END
28 for, {keyword_for, keyword_for}, EXPR_VALUE
29 if, {keyword_if, modifier_if}, EXPR_VALUE
30 in, {keyword_in, keyword_in}, EXPR_VALUE
31 module, {keyword_module, keyword_module}, EXPR_VALUE
32 next, {keyword_next, keyword_next}, EXPR_MID
33 nil, {keyword_nil, keyword_nil}, EXPR_END
7ee8018 @matz add dependency from keywords to lex.def
matz authored
34 not, {keyword_not, keyword_not}, EXPR_ARG
e0d6430 @mimaki add mruby sources
mimaki authored
35 or, {keyword_or, keyword_or}, EXPR_VALUE
36 redo, {keyword_redo, keyword_redo}, EXPR_END
37 rescue, {keyword_rescue, modifier_rescue}, EXPR_MID
38 retry, {keyword_retry, keyword_retry}, EXPR_END
39 return, {keyword_return, keyword_return}, EXPR_MID
40 self, {keyword_self, keyword_self}, EXPR_END
41 super, {keyword_super, keyword_super}, EXPR_ARG
42 then, {keyword_then, keyword_then}, EXPR_BEG
43 true, {keyword_true, keyword_true}, EXPR_END
44 undef, {keyword_undef, keyword_undef}, EXPR_FNAME
45 unless, {keyword_unless, modifier_unless}, EXPR_VALUE
46 until, {keyword_until, modifier_until}, EXPR_VALUE
47 when, {keyword_when, keyword_when}, EXPR_VALUE
48 while, {keyword_while, modifier_while}, EXPR_VALUE
49 yield, {keyword_yield, keyword_yield}, EXPR_ARG
50 %%
Something went wrong with that request. Please try again.