1 #define tIGNORED_NL (tLAST_TOKEN + 1) 2 #define tCOMMENT (tLAST_TOKEN + 2) 3 #define tEMBDOC_BEG (tLAST_TOKEN + 3) 4 #define tEMBDOC (tLAST_TOKEN + 4) 5 #define tEMBDOC_END (tLAST_TOKEN + 5) 6 #define tSP (tLAST_TOKEN + 6) 7 #define tHEREDOC_BEG (tLAST_TOKEN + 7) 8 #define tHEREDOC_END (tLAST_TOKEN + 8) 9 #define k__END__ (tLAST_TOKEN + 9) 71 ripper_init_eventids2(
void)
73 #define set_id2(name) ripper_scanner_ids.ripper_id_##name = rb_intern_const("on_"#name) 129 STATIC_ASSERT(ripper_scanner_ids_size,
sizeof(ripper_scanner_ids) < SHRT_MAX);
130 #define O(member) (int)offsetof(ripper_scanner_ids_t, ripper_id_##member) 132 static const struct token_assoc {
133 unsigned short token;
134 unsigned short id_offset;
135 } token_to_eventid[] = {
291 ripper_token2eventid(
int tok)
295 for (i = 0; i <
numberof(token_to_eventid); i++) {
296 const struct token_assoc *
const a = &token_to_eventid[i];
298 return *(
const ID *)((
const char *)&ripper_scanner_ids + a->id_offset);
#define keyword_do_LAMBDA
void rb_raise(VALUE exc, const char *fmt,...)
#define keyword__ENCODING__
STATIC_ASSERT(k__END___range, k__END__< SHRT_MAX)
ID ripper_id_qsymbols_beg
ID ripper_id_tstring_content