static void
ripper_init_eventids2_table(VALUE self)
{
    VALUE h = rb_hash_new();
    ID id;
    rb_define_const(self, "SCANNER_EVENT_TABLE", h);
    id = rb_intern("CHAR");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("__end__");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("backref");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("backtick");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("comma");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("comment");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("const");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("cvar");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("embdoc");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("embdoc_beg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("embdoc_end");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("embexpr_beg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("embexpr_end");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("embvar");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("float");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("gvar");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("heredoc_beg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("heredoc_end");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("ident");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("ignored_nl");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("int");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("ivar");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("kw");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("label");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("lbrace");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("lbracket");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("lparen");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("nl");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("op");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("period");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("qwords_beg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("rbrace");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("rbracket");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("regexp_beg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("regexp_end");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("rparen");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("semicolon");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("sp");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("symbeg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("tlambda");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("tlambeg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("tstring_beg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("tstring_content");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("tstring_end");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("words_beg");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    id = rb_intern("words_sep");
    rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
}
