lex_p 10198 ext/ripper/ripper.c if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); lex_p 10199 ext/ripper/ripper.c if (lex_p == parser->tokp) return; lex_p 10200 ext/ripper/ripper.c str = STR_NEW(parser->tokp, lex_p - parser->tokp); lex_p 10236 ext/ripper/ripper.c #define parser_mbclen() mbclen((lex_p-1),lex_pend,parser->enc) lex_p 10237 ext/ripper/ripper.c #define parser_precise_mbclen() rb_enc_precise_mbclen((lex_p-1),lex_pend,parser->enc) lex_p 10239 ext/ripper/ripper.c #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,parser->enc)) lex_p 10241 ext/ripper/ripper.c #define parser_isascii() ISASCII(*(lex_p-1)) lex_p 10248 ext/ripper/ripper.c const char *p, *pend = lex_p - strlen(token); lex_p 10261 ext/ripper/ripper.c const char *p, *pend = lex_p - strlen(token); lex_p 10323 ext/ripper/ripper.c p = lex_p; lex_p 10330 ext/ripper/ripper.c pe = lex_p; lex_p 10342 ext/ripper/ripper.c if (lex_p - p > max_line_margin) { lex_p 10343 ext/ripper/ripper.c p = rb_enc_prev_char(p, lex_p - max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 10346 ext/ripper/ripper.c if (pe - lex_p > max_line_margin) { lex_p 10347 ext/ripper/ripper.c pe = rb_enc_prev_char(lex_p, lex_p + max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 10357 ext/ripper/ripper.c i = lex_p - p; lex_p 10450 ext/ripper/ripper.c lex_p = lex_pbeg = lex_pend = 0; lex_p 10536 ext/ripper/ripper.c lex_pbeg = lex_p = lex_pend = 0; lex_p 10581 ext/ripper/ripper.c lex_pbeg = lex_p = lex_pend = 0; lex_p 10627 ext/ripper/ripper.c #define peek(c) (lex_p < lex_pend && (c) == *lex_p) lex_p 10634 ext/ripper/ripper.c if (lex_p == lex_pend) { lex_p 10669 ext/ripper/ripper.c lex_pbeg = lex_p = RSTRING_PTR(v); lex_p 10670 ext/ripper/ripper.c lex_pend = lex_p + RSTRING_LEN(v); lex_p 10677 ext/ripper/ripper.c c = (unsigned char)*lex_p++; lex_p 10679 ext/ripper/ripper.c lex_p++; lex_p 10690 ext/ripper/ripper.c lex_p--; lex_p 10691 ext/ripper/ripper.c if (lex_p > lex_pbeg && lex_p[0] == '\n' && lex_p[-1] == '\r') { lex_p 10692 ext/ripper/ripper.c lex_p--; lex_p 10696 ext/ripper/ripper.c #define was_bol() (lex_p == lex_pbeg + 1) lex_p 10745 ext/ripper/ripper.c c = scan_hex(lex_p, 2, numlen); lex_p 10750 ext/ripper/ripper.c lex_p += *numlen; lex_p 10754 ext/ripper/ripper.c #define tokcopy(n) memcpy(tokspace(n), lex_p - (n), (n)) lex_p 10774 ext/ripper/ripper.c if (regexp_literal) { tokadd(*lex_p); } lex_p 10776 ext/ripper/ripper.c codepoint = scan_hex(lex_p, 6, &numlen); lex_p 10785 ext/ripper/ripper.c lex_p += numlen; lex_p 10812 ext/ripper/ripper.c codepoint = scan_hex(lex_p, 4, &numlen); lex_p 10817 ext/ripper/ripper.c lex_p += 4; lex_p 10880 ext/ripper/ripper.c c = scan_oct(lex_p, 3, &numlen); lex_p 10881 ext/ripper/ripper.c lex_p += numlen; lex_p 10961 ext/ripper/ripper.c oct = scan_oct(--lex_p, 3, &numlen); lex_p 10963 ext/ripper/ripper.c lex_p += numlen; lex_p 11072 ext/ripper/ripper.c lex_p += --len; lex_p 11101 ext/ripper/ripper.c const char *pos = lex_p; \ lex_p 11102 ext/ripper/ripper.c lex_p = beg; \ lex_p 11104 ext/ripper/ripper.c lex_p = pos; \ lex_p 11118 ext/ripper/ripper.c else if ((func & STR_FUNC_EXPAND) && c == '#' && lex_p < lex_pend) { lex_p 11119 ext/ripper/ripper.c int c2 = *lex_p; lex_p 11126 ext/ripper/ripper.c const char *beg = lex_p - 1; lex_p 11321 ext/ripper/ripper.c len = lex_p - lex_pbeg; lex_p 11349 ext/ripper/ripper.c lex_p = lex_pbeg + here->nd_nth; lex_p 11529 ext/ripper/ripper.c const char *p = lex_pbeg, *pend = lex_p - 1; lex_p 11742 ext/ripper/ripper.c if (lex_pend - lex_p >= 2 && lex_p 11743 ext/ripper/ripper.c (unsigned char)lex_p[0] == 0xbb && lex_p 11744 ext/ripper/ripper.c (unsigned char)lex_p[1] == 0xbf) { lex_p 11746 ext/ripper/ripper.c lex_p += 2; lex_p 11747 ext/ripper/ripper.c lex_pbeg = lex_p; lex_p 11825 ext/ripper/ripper.c if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { lex_p 11827 ext/ripper/ripper.c set_file_encoding(parser, lex_p, lex_pend); lex_p 11830 ext/ripper/ripper.c lex_p = lex_pend; lex_p 11873 ext/ripper/ripper.c parser->tokp = lex_p; lex_p 11943 ext/ripper/ripper.c if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) { lex_p 11964 ext/ripper/ripper.c if (strncmp(lex_p, "end", 3) == 0 && lex_p 11965 ext/ripper/ripper.c (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) { lex_p 12128 ext/ripper/ripper.c lex_p < lex_pend && is_identchar(lex_p, lex_pend, parser->enc)) { lex_p 12955 ext/ripper/ripper.c (!peek('=') || (lex_p + 1 < lex_pend && lex_p[1] == '>'))) { lex_p 12975 ext/ripper/ripper.c if (peek(':') && !(lex_p + 1 < lex_pend && lex_p[1] == ':')) { lex_p 4798 ext/ripper/ripper.y if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); lex_p 4799 ext/ripper/ripper.y if (lex_p == parser->tokp) return; lex_p 4800 ext/ripper/ripper.y str = STR_NEW(parser->tokp, lex_p - parser->tokp); lex_p 4836 ext/ripper/ripper.y #define parser_mbclen() mbclen((lex_p-1),lex_pend,parser->enc) lex_p 4837 ext/ripper/ripper.y #define parser_precise_mbclen() rb_enc_precise_mbclen((lex_p-1),lex_pend,parser->enc) lex_p 4839 ext/ripper/ripper.y #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,parser->enc)) lex_p 4841 ext/ripper/ripper.y #define parser_isascii() ISASCII(*(lex_p-1)) lex_p 4848 ext/ripper/ripper.y const char *p, *pend = lex_p - strlen(token); lex_p 4861 ext/ripper/ripper.y const char *p, *pend = lex_p - strlen(token); lex_p 4923 ext/ripper/ripper.y p = lex_p; lex_p 4930 ext/ripper/ripper.y pe = lex_p; lex_p 4942 ext/ripper/ripper.y if (lex_p - p > max_line_margin) { lex_p 4943 ext/ripper/ripper.y p = rb_enc_prev_char(p, lex_p - max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 4946 ext/ripper/ripper.y if (pe - lex_p > max_line_margin) { lex_p 4947 ext/ripper/ripper.y pe = rb_enc_prev_char(lex_p, lex_p + max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 4957 ext/ripper/ripper.y i = lex_p - p; lex_p 5050 ext/ripper/ripper.y lex_p = lex_pbeg = lex_pend = 0; lex_p 5136 ext/ripper/ripper.y lex_pbeg = lex_p = lex_pend = 0; lex_p 5181 ext/ripper/ripper.y lex_pbeg = lex_p = lex_pend = 0; lex_p 5227 ext/ripper/ripper.y #define peek(c) (lex_p < lex_pend && (c) == *lex_p) lex_p 5234 ext/ripper/ripper.y if (lex_p == lex_pend) { lex_p 5269 ext/ripper/ripper.y lex_pbeg = lex_p = RSTRING_PTR(v); lex_p 5270 ext/ripper/ripper.y lex_pend = lex_p + RSTRING_LEN(v); lex_p 5277 ext/ripper/ripper.y c = (unsigned char)*lex_p++; lex_p 5279 ext/ripper/ripper.y lex_p++; lex_p 5290 ext/ripper/ripper.y lex_p--; lex_p 5291 ext/ripper/ripper.y if (lex_p > lex_pbeg && lex_p[0] == '\n' && lex_p[-1] == '\r') { lex_p 5292 ext/ripper/ripper.y lex_p--; lex_p 5296 ext/ripper/ripper.y #define was_bol() (lex_p == lex_pbeg + 1) lex_p 5345 ext/ripper/ripper.y c = scan_hex(lex_p, 2, numlen); lex_p 5350 ext/ripper/ripper.y lex_p += *numlen; lex_p 5354 ext/ripper/ripper.y #define tokcopy(n) memcpy(tokspace(n), lex_p - (n), (n)) lex_p 5374 ext/ripper/ripper.y if (regexp_literal) { tokadd(*lex_p); } lex_p 5376 ext/ripper/ripper.y codepoint = scan_hex(lex_p, 6, &numlen); lex_p 5385 ext/ripper/ripper.y lex_p += numlen; lex_p 5412 ext/ripper/ripper.y codepoint = scan_hex(lex_p, 4, &numlen); lex_p 5417 ext/ripper/ripper.y lex_p += 4; lex_p 5480 ext/ripper/ripper.y c = scan_oct(lex_p, 3, &numlen); lex_p 5481 ext/ripper/ripper.y lex_p += numlen; lex_p 5561 ext/ripper/ripper.y oct = scan_oct(--lex_p, 3, &numlen); lex_p 5563 ext/ripper/ripper.y lex_p += numlen; lex_p 5672 ext/ripper/ripper.y lex_p += --len; lex_p 5701 ext/ripper/ripper.y const char *pos = lex_p; \ lex_p 5702 ext/ripper/ripper.y lex_p = beg; \ lex_p 5704 ext/ripper/ripper.y lex_p = pos; \ lex_p 5718 ext/ripper/ripper.y else if ((func & STR_FUNC_EXPAND) && c == '#' && lex_p < lex_pend) { lex_p 5719 ext/ripper/ripper.y int c2 = *lex_p; lex_p 5726 ext/ripper/ripper.y const char *beg = lex_p - 1; lex_p 5921 ext/ripper/ripper.y len = lex_p - lex_pbeg; lex_p 5949 ext/ripper/ripper.y lex_p = lex_pbeg + here->nd_nth; lex_p 6129 ext/ripper/ripper.y const char *p = lex_pbeg, *pend = lex_p - 1; lex_p 6342 ext/ripper/ripper.y if (lex_pend - lex_p >= 2 && lex_p 6343 ext/ripper/ripper.y (unsigned char)lex_p[0] == 0xbb && lex_p 6344 ext/ripper/ripper.y (unsigned char)lex_p[1] == 0xbf) { lex_p 6346 ext/ripper/ripper.y lex_p += 2; lex_p 6347 ext/ripper/ripper.y lex_pbeg = lex_p; lex_p 6425 ext/ripper/ripper.y if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { lex_p 6427 ext/ripper/ripper.y set_file_encoding(parser, lex_p, lex_pend); lex_p 6430 ext/ripper/ripper.y lex_p = lex_pend; lex_p 6473 ext/ripper/ripper.y parser->tokp = lex_p; lex_p 6543 ext/ripper/ripper.y if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) { lex_p 6564 ext/ripper/ripper.y if (strncmp(lex_p, "end", 3) == 0 && lex_p 6565 ext/ripper/ripper.y (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) { lex_p 6728 ext/ripper/ripper.y lex_p < lex_pend && is_identchar(lex_p, lex_pend, parser->enc)) { lex_p 7555 ext/ripper/ripper.y (!peek('=') || (lex_p + 1 < lex_pend && lex_p[1] == '>'))) { lex_p 7575 ext/ripper/ripper.y if (peek(':') && !(lex_p + 1 < lex_pend && lex_p[1] == ':')) { lex_p 10130 parse.c if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); lex_p 10131 parse.c if (lex_p == parser->tokp) return; lex_p 10132 parse.c str = STR_NEW(parser->tokp, lex_p - parser->tokp); lex_p 10168 parse.c #define parser_mbclen() mbclen((lex_p-1),lex_pend,parser->enc) lex_p 10169 parse.c #define parser_precise_mbclen() rb_enc_precise_mbclen((lex_p-1),lex_pend,parser->enc) lex_p 10171 parse.c #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,parser->enc)) lex_p 10173 parse.c #define parser_isascii() ISASCII(*(lex_p-1)) lex_p 10180 parse.c const char *p, *pend = lex_p - strlen(token); lex_p 10193 parse.c const char *p, *pend = lex_p - strlen(token); lex_p 10255 parse.c p = lex_p; lex_p 10262 parse.c pe = lex_p; lex_p 10274 parse.c if (lex_p - p > max_line_margin) { lex_p 10275 parse.c p = rb_enc_prev_char(p, lex_p - max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 10278 parse.c if (pe - lex_p > max_line_margin) { lex_p 10279 parse.c pe = rb_enc_prev_char(lex_p, lex_p + max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 10289 parse.c i = lex_p - p; lex_p 10382 parse.c lex_p = lex_pbeg = lex_pend = 0; lex_p 10468 parse.c lex_pbeg = lex_p = lex_pend = 0; lex_p 10513 parse.c lex_pbeg = lex_p = lex_pend = 0; lex_p 10559 parse.c #define peek(c) (lex_p < lex_pend && (c) == *lex_p) lex_p 10566 parse.c if (lex_p == lex_pend) { lex_p 10601 parse.c lex_pbeg = lex_p = RSTRING_PTR(v); lex_p 10602 parse.c lex_pend = lex_p + RSTRING_LEN(v); lex_p 10609 parse.c c = (unsigned char)*lex_p++; lex_p 10611 parse.c lex_p++; lex_p 10622 parse.c lex_p--; lex_p 10623 parse.c if (lex_p > lex_pbeg && lex_p[0] == '\n' && lex_p[-1] == '\r') { lex_p 10624 parse.c lex_p--; lex_p 10628 parse.c #define was_bol() (lex_p == lex_pbeg + 1) lex_p 10677 parse.c c = scan_hex(lex_p, 2, numlen); lex_p 10682 parse.c lex_p += *numlen; lex_p 10686 parse.c #define tokcopy(n) memcpy(tokspace(n), lex_p - (n), (n)) lex_p 10706 parse.c if (regexp_literal) { tokadd(*lex_p); } lex_p 10708 parse.c codepoint = scan_hex(lex_p, 6, &numlen); lex_p 10717 parse.c lex_p += numlen; lex_p 10744 parse.c codepoint = scan_hex(lex_p, 4, &numlen); lex_p 10749 parse.c lex_p += 4; lex_p 10812 parse.c c = scan_oct(lex_p, 3, &numlen); lex_p 10813 parse.c lex_p += numlen; lex_p 10893 parse.c oct = scan_oct(--lex_p, 3, &numlen); lex_p 10895 parse.c lex_p += numlen; lex_p 11004 parse.c lex_p += --len; lex_p 11033 parse.c const char *pos = lex_p; \ lex_p 11034 parse.c lex_p = beg; \ lex_p 11036 parse.c lex_p = pos; \ lex_p 11050 parse.c else if ((func & STR_FUNC_EXPAND) && c == '#' && lex_p < lex_pend) { lex_p 11051 parse.c int c2 = *lex_p; lex_p 11058 parse.c const char *beg = lex_p - 1; lex_p 11253 parse.c len = lex_p - lex_pbeg; lex_p 11281 parse.c lex_p = lex_pbeg + here->nd_nth; lex_p 11461 parse.c const char *p = lex_pbeg, *pend = lex_p - 1; lex_p 11674 parse.c if (lex_pend - lex_p >= 2 && lex_p 11675 parse.c (unsigned char)lex_p[0] == 0xbb && lex_p 11676 parse.c (unsigned char)lex_p[1] == 0xbf) { lex_p 11678 parse.c lex_p += 2; lex_p 11679 parse.c lex_pbeg = lex_p; lex_p 11757 parse.c if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { lex_p 11759 parse.c set_file_encoding(parser, lex_p, lex_pend); lex_p 11762 parse.c lex_p = lex_pend; lex_p 11805 parse.c parser->tokp = lex_p; lex_p 11875 parse.c if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) { lex_p 11896 parse.c if (strncmp(lex_p, "end", 3) == 0 && lex_p 11897 parse.c (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) { lex_p 12060 parse.c lex_p < lex_pend && is_identchar(lex_p, lex_pend, parser->enc)) { lex_p 12887 parse.c (!peek('=') || (lex_p + 1 < lex_pend && lex_p[1] == '>'))) { lex_p 12907 parse.c if (peek(':') && !(lex_p + 1 < lex_pend && lex_p[1] == ':')) { lex_p 4798 parse.y if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); lex_p 4799 parse.y if (lex_p == parser->tokp) return; lex_p 4800 parse.y str = STR_NEW(parser->tokp, lex_p - parser->tokp); lex_p 4836 parse.y #define parser_mbclen() mbclen((lex_p-1),lex_pend,parser->enc) lex_p 4837 parse.y #define parser_precise_mbclen() rb_enc_precise_mbclen((lex_p-1),lex_pend,parser->enc) lex_p 4839 parse.y #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,parser->enc)) lex_p 4841 parse.y #define parser_isascii() ISASCII(*(lex_p-1)) lex_p 4848 parse.y const char *p, *pend = lex_p - strlen(token); lex_p 4861 parse.y const char *p, *pend = lex_p - strlen(token); lex_p 4923 parse.y p = lex_p; lex_p 4930 parse.y pe = lex_p; lex_p 4942 parse.y if (lex_p - p > max_line_margin) { lex_p 4943 parse.y p = rb_enc_prev_char(p, lex_p - max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 4946 parse.y if (pe - lex_p > max_line_margin) { lex_p 4947 parse.y pe = rb_enc_prev_char(lex_p, lex_p + max_line_margin, pe, rb_enc_get(lex_lastline)); lex_p 4957 parse.y i = lex_p - p; lex_p 5050 parse.y lex_p = lex_pbeg = lex_pend = 0; lex_p 5136 parse.y lex_pbeg = lex_p = lex_pend = 0; lex_p 5181 parse.y lex_pbeg = lex_p = lex_pend = 0; lex_p 5227 parse.y #define peek(c) (lex_p < lex_pend && (c) == *lex_p) lex_p 5234 parse.y if (lex_p == lex_pend) { lex_p 5269 parse.y lex_pbeg = lex_p = RSTRING_PTR(v); lex_p 5270 parse.y lex_pend = lex_p + RSTRING_LEN(v); lex_p 5277 parse.y c = (unsigned char)*lex_p++; lex_p 5279 parse.y lex_p++; lex_p 5290 parse.y lex_p--; lex_p 5291 parse.y if (lex_p > lex_pbeg && lex_p[0] == '\n' && lex_p[-1] == '\r') { lex_p 5292 parse.y lex_p--; lex_p 5296 parse.y #define was_bol() (lex_p == lex_pbeg + 1) lex_p 5345 parse.y c = scan_hex(lex_p, 2, numlen); lex_p 5350 parse.y lex_p += *numlen; lex_p 5354 parse.y #define tokcopy(n) memcpy(tokspace(n), lex_p - (n), (n)) lex_p 5374 parse.y if (regexp_literal) { tokadd(*lex_p); } lex_p 5376 parse.y codepoint = scan_hex(lex_p, 6, &numlen); lex_p 5385 parse.y lex_p += numlen; lex_p 5412 parse.y codepoint = scan_hex(lex_p, 4, &numlen); lex_p 5417 parse.y lex_p += 4; lex_p 5480 parse.y c = scan_oct(lex_p, 3, &numlen); lex_p 5481 parse.y lex_p += numlen; lex_p 5561 parse.y oct = scan_oct(--lex_p, 3, &numlen); lex_p 5563 parse.y lex_p += numlen; lex_p 5672 parse.y lex_p += --len; lex_p 5701 parse.y const char *pos = lex_p; \ lex_p 5702 parse.y lex_p = beg; \ lex_p 5704 parse.y lex_p = pos; \ lex_p 5718 parse.y else if ((func & STR_FUNC_EXPAND) && c == '#' && lex_p < lex_pend) { lex_p 5719 parse.y int c2 = *lex_p; lex_p 5726 parse.y const char *beg = lex_p - 1; lex_p 5921 parse.y len = lex_p - lex_pbeg; lex_p 5949 parse.y lex_p = lex_pbeg + here->nd_nth; lex_p 6129 parse.y const char *p = lex_pbeg, *pend = lex_p - 1; lex_p 6342 parse.y if (lex_pend - lex_p >= 2 && lex_p 6343 parse.y (unsigned char)lex_p[0] == 0xbb && lex_p 6344 parse.y (unsigned char)lex_p[1] == 0xbf) { lex_p 6346 parse.y lex_p += 2; lex_p 6347 parse.y lex_pbeg = lex_p; lex_p 6425 parse.y if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { lex_p 6427 parse.y set_file_encoding(parser, lex_p, lex_pend); lex_p 6430 parse.y lex_p = lex_pend; lex_p 6473 parse.y parser->tokp = lex_p; lex_p 6543 parse.y if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) { lex_p 6564 parse.y if (strncmp(lex_p, "end", 3) == 0 && lex_p 6565 parse.y (lex_p + 3 == lex_pend || ISSPACE(lex_p[3]))) { lex_p 6728 parse.y lex_p < lex_pend && is_identchar(lex_p, lex_pend, parser->enc)) { lex_p 7555 parse.y (!peek('=') || (lex_p + 1 < lex_pend && lex_p[1] == '>'))) { lex_p 7575 parse.y if (peek(':') && !(lex_p + 1 < lex_pend && lex_p[1] == ':')) {