Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# ext/ripper/eventids2table.c

Go to the documentation of this file.

    00001 static void
    00002 ripper_init_eventids2_table(VALUE self)
    00003 {
    00004     VALUE h = rb_hash_new();
    00005     ID id;
    00006     rb_define_const(self, "SCANNER_EVENT_TABLE", h);
    00007     id = rb_intern_const("CHAR");
    00008     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00009     id = rb_intern_const("__end__");
    00010     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00011     id = rb_intern_const("backref");
    00012     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00013     id = rb_intern_const("backtick");
    00014     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00015     id = rb_intern_const("comma");
    00016     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00017     id = rb_intern_const("comment");
    00018     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00019     id = rb_intern_const("const");
    00020     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00021     id = rb_intern_const("cvar");
    00022     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00023     id = rb_intern_const("embdoc");
    00024     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00025     id = rb_intern_const("embdoc_beg");
    00026     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00027     id = rb_intern_const("embdoc_end");
    00028     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00029     id = rb_intern_const("embexpr_beg");
    00030     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00031     id = rb_intern_const("embexpr_end");
    00032     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00033     id = rb_intern_const("embvar");
    00034     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00035     id = rb_intern_const("float");
    00036     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00037     id = rb_intern_const("gvar");
    00038     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00039     id = rb_intern_const("heredoc_beg");
    00040     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00041     id = rb_intern_const("heredoc_end");
    00042     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00043     id = rb_intern_const("ident");
    00044     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00045     id = rb_intern_const("ignored_nl");
    00046     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00047     id = rb_intern_const("int");
    00048     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00049     id = rb_intern_const("ivar");
    00050     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00051     id = rb_intern_const("kw");
    00052     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00053     id = rb_intern_const("label");
    00054     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00055     id = rb_intern_const("lbrace");
    00056     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00057     id = rb_intern_const("lbracket");
    00058     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00059     id = rb_intern_const("lparen");
    00060     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00061     id = rb_intern_const("nl");
    00062     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00063     id = rb_intern_const("op");
    00064     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00065     id = rb_intern_const("period");
    00066     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00067     id = rb_intern_const("qwords_beg");
    00068     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00069     id = rb_intern_const("rbrace");
    00070     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00071     id = rb_intern_const("rbracket");
    00072     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00073     id = rb_intern_const("regexp_beg");
    00074     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00075     id = rb_intern_const("regexp_end");
    00076     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00077     id = rb_intern_const("rparen");
    00078     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00079     id = rb_intern_const("semicolon");
    00080     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00081     id = rb_intern_const("sp");
    00082     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00083     id = rb_intern_const("symbeg");
    00084     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00085     id = rb_intern_const("tlambda");
    00086     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00087     id = rb_intern_const("tlambeg");
    00088     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00089     id = rb_intern_const("tstring_beg");
    00090     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00091     id = rb_intern_const("tstring_content");
    00092     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00093     id = rb_intern_const("tstring_end");
    00094     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00095     id = rb_intern_const("words_beg");
    00096     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00097     id = rb_intern_const("words_sep");
    00098     rb_hash_aset(h, ID2SYM(id), INT2NUM(1));
    00099 }
    00100