// Creates mapping table of token to arity for on_* method calls for the scanner support
private static IRubyObject createScannerEventTable(Ruby runtime, RubyClass ripper) {
RubyHash hash = new RubyHash(runtime);
hash.fastASet(runtime.newSymbol("CHAR"), runtime.newFixnum(1));
hash.fastASet(runtime.newSymbol("__end__"), runtime.newFixnum(1));
hash.fastASet(runtime.newSymbol("backref"), runtime.newFixnum(1));
hash.fastASet(runtime.newSymbol("backtick"), runtime.newFixnum(1));
hash.fastASet(runtime.newSymbol("comma"), runtime.newFixnum(1));
hash.fastASet(runtime.newSymbol("comment"), runtime.newFixnum(1));