parser 45 ext/psych/psych_parser.c yaml_parser_t * parser; parser 47 ext/psych/psych_parser.c parser = (yaml_parser_t *)ptr; parser 48 ext/psych/psych_parser.c yaml_parser_delete(parser); parser 49 ext/psych/psych_parser.c xfree(parser); parser 55 ext/psych/psych_parser.c const yaml_parser_t *parser = ptr; parser 72 ext/psych/psych_parser.c yaml_parser_t * parser; parser 73 ext/psych/psych_parser.c VALUE obj = TypedData_Make_Struct(klass, yaml_parser_t, &psych_parser_type, parser); parser 75 ext/psych/psych_parser.c yaml_parser_initialize(parser); parser 84 ext/psych/psych_parser.c line = parser->context_mark.line + 1; parser 85 ext/psych/psych_parser.c column = parser->context_mark.column + 1; parser 91 ext/psych/psych_parser.c INT2NUM(parser->problem_offset), parser 92 ext/psych/psych_parser.c parser->problem ? rb_usascii_str_new2(parser->problem) : Qnil, parser 93 ext/psych/psych_parser.c parser->context ? rb_usascii_str_new2(parser->context) : Qnil); parser 250 ext/psych/psych_parser.c yaml_parser_t * parser; parser 269 ext/psych/psych_parser.c TypedData_Get_Struct(self, yaml_parser_t, &psych_parser_type, parser); parser 271 ext/psych/psych_parser.c yaml_parser_delete(parser); parser 272 ext/psych/psych_parser.c yaml_parser_initialize(parser); parser 279 ext/psych/psych_parser.c yaml_parser_set_encoding(parser, parser_encoding); parser 281 ext/psych/psych_parser.c yaml_parser_set_input(parser, io_reader, (void *)yaml); parser 287 ext/psych/psych_parser.c yaml_parser_set_encoding(parser, parser_encoding); parser 290 ext/psych/psych_parser.c parser, parser 297 ext/psych/psych_parser.c if(!yaml_parser_parse(parser, &event)) { parser 300 ext/psych/psych_parser.c exception = make_exception(parser, path); parser 301 ext/psych/psych_parser.c yaml_parser_delete(parser); parser 302 ext/psych/psych_parser.c yaml_parser_initialize(parser); parser 545 ext/psych/psych_parser.c yaml_parser_t * parser; parser 547 ext/psych/psych_parser.c TypedData_Get_Struct(self, yaml_parser_t, &psych_parser_type, parser); parser 549 ext/psych/psych_parser.c args[0] = INT2NUM(parser->mark.index); parser 550 ext/psych/psych_parser.c args[1] = INT2NUM(parser->mark.line); parser 551 ext/psych/psych_parser.c args[2] = INT2NUM(parser->mark.column); parser 173 ext/psych/yaml/api.c assert(parser); /* Non-NULL parser object expected. */ parser 175 ext/psych/yaml/api.c memset(parser, 0, sizeof(yaml_parser_t)); parser 176 ext/psych/yaml/api.c if (!BUFFER_INIT(parser, parser->raw_buffer, INPUT_RAW_BUFFER_SIZE)) parser 178 ext/psych/yaml/api.c if (!BUFFER_INIT(parser, parser->buffer, INPUT_BUFFER_SIZE)) parser 180 ext/psych/yaml/api.c if (!QUEUE_INIT(parser, parser->tokens, INITIAL_QUEUE_SIZE)) parser 182 ext/psych/yaml/api.c if (!STACK_INIT(parser, parser->indents, INITIAL_STACK_SIZE)) parser 184 ext/psych/yaml/api.c if (!STACK_INIT(parser, parser->simple_keys, INITIAL_STACK_SIZE)) parser 186 ext/psych/yaml/api.c if (!STACK_INIT(parser, parser->states, INITIAL_STACK_SIZE)) parser 188 ext/psych/yaml/api.c if (!STACK_INIT(parser, parser->marks, INITIAL_STACK_SIZE)) parser 190 ext/psych/yaml/api.c if (!STACK_INIT(parser, parser->tag_directives, INITIAL_STACK_SIZE)) parser 197 ext/psych/yaml/api.c BUFFER_DEL(parser, parser->raw_buffer); parser 198 ext/psych/yaml/api.c BUFFER_DEL(parser, parser->buffer); parser 199 ext/psych/yaml/api.c QUEUE_DEL(parser, parser->tokens); parser 200 ext/psych/yaml/api.c STACK_DEL(parser, parser->indents); parser 201 ext/psych/yaml/api.c STACK_DEL(parser, parser->simple_keys); parser 202 ext/psych/yaml/api.c STACK_DEL(parser, parser->states); parser 203 ext/psych/yaml/api.c STACK_DEL(parser, parser->marks); parser 204 ext/psych/yaml/api.c STACK_DEL(parser, parser->tag_directives); parser 216 ext/psych/yaml/api.c assert(parser); /* Non-NULL parser object expected. */ parser 218 ext/psych/yaml/api.c BUFFER_DEL(parser, parser->raw_buffer); parser 219 ext/psych/yaml/api.c BUFFER_DEL(parser, parser->buffer); parser 220 ext/psych/yaml/api.c while (!QUEUE_EMPTY(parser, parser->tokens)) { parser 221 ext/psych/yaml/api.c yaml_token_delete(&DEQUEUE(parser, parser->tokens)); parser 223 ext/psych/yaml/api.c QUEUE_DEL(parser, parser->tokens); parser 224 ext/psych/yaml/api.c STACK_DEL(parser, parser->indents); parser 225 ext/psych/yaml/api.c STACK_DEL(parser, parser->simple_keys); parser 226 ext/psych/yaml/api.c STACK_DEL(parser, parser->states); parser 227 ext/psych/yaml/api.c STACK_DEL(parser, parser->marks); parser 228 ext/psych/yaml/api.c while (!STACK_EMPTY(parser, parser->tag_directives)) { parser 229 ext/psych/yaml/api.c yaml_tag_directive_t tag_directive = POP(parser, parser->tag_directives); parser 233 ext/psych/yaml/api.c STACK_DEL(parser, parser->tag_directives); parser 235 ext/psych/yaml/api.c memset(parser, 0, sizeof(yaml_parser_t)); parser 246 ext/psych/yaml/api.c yaml_parser_t *parser = data; parser 248 ext/psych/yaml/api.c if (parser->input.string.current == parser->input.string.end) { parser 253 ext/psych/yaml/api.c if (size > (size_t)(parser->input.string.end parser 254 ext/psych/yaml/api.c - parser->input.string.current)) { parser 255 ext/psych/yaml/api.c size = parser->input.string.end - parser->input.string.current; parser 258 ext/psych/yaml/api.c memcpy(buffer, parser->input.string.current, size); parser 259 ext/psych/yaml/api.c parser->input.string.current += size; parser 272 ext/psych/yaml/api.c yaml_parser_t *parser = data; parser 274 ext/psych/yaml/api.c *size_read = fread(buffer, 1, size, parser->input.file); parser 275 ext/psych/yaml/api.c return !ferror(parser->input.file); parser 286 ext/psych/yaml/api.c assert(parser); /* Non-NULL parser object expected. */ parser 287 ext/psych/yaml/api.c assert(!parser->read_handler); /* You can set the source only once. */ parser 290 ext/psych/yaml/api.c parser->read_handler = yaml_string_read_handler; parser 291 ext/psych/yaml/api.c parser->read_handler_data = parser; parser 293 ext/psych/yaml/api.c parser->input.string.start = input; parser 294 ext/psych/yaml/api.c parser->input.string.current = input; parser 295 ext/psych/yaml/api.c parser->input.string.end = input+size; parser 305 ext/psych/yaml/api.c assert(parser); /* Non-NULL parser object expected. */ parser 306 ext/psych/yaml/api.c assert(!parser->read_handler); /* You can set the source only once. */ parser 309 ext/psych/yaml/api.c parser->read_handler = yaml_file_read_handler; parser 310 ext/psych/yaml/api.c parser->read_handler_data = parser; parser 312 ext/psych/yaml/api.c parser->input.file = file; parser 323 ext/psych/yaml/api.c assert(parser); /* Non-NULL parser object expected. */ parser 324 ext/psych/yaml/api.c assert(!parser->read_handler); /* You can set the source only once. */ parser 327 ext/psych/yaml/api.c parser->read_handler = handler; parser 328 ext/psych/yaml/api.c parser->read_handler_data = data; parser 338 ext/psych/yaml/api.c assert(parser); /* Non-NULL parser object expected. */ parser 339 ext/psych/yaml/api.c assert(!parser->encoding); /* Encoding is already set or detected. */ parser 341 ext/psych/yaml/api.c parser->encoding = encoding; parser 71 ext/psych/yaml/loader.c assert(parser); /* Non-NULL parser object is expected. */ parser 75 ext/psych/yaml/loader.c if (!STACK_INIT(parser, document->nodes, INITIAL_STACK_SIZE)) parser 78 ext/psych/yaml/loader.c if (!parser->stream_start_produced) { parser 79 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) goto error; parser 84 ext/psych/yaml/loader.c if (parser->stream_end_produced) { parser 88 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) goto error; parser 93 ext/psych/yaml/loader.c if (!STACK_INIT(parser, parser->aliases, INITIAL_STACK_SIZE)) parser 96 ext/psych/yaml/loader.c parser->document = document; parser 98 ext/psych/yaml/loader.c if (!yaml_parser_load_document(parser, &event)) goto error; parser 100 ext/psych/yaml/loader.c yaml_parser_delete_aliases(parser); parser 101 ext/psych/yaml/loader.c parser->document = NULL; parser 107 ext/psych/yaml/loader.c yaml_parser_delete_aliases(parser); parser 109 ext/psych/yaml/loader.c parser->document = NULL; parser 122 ext/psych/yaml/loader.c parser->error = YAML_COMPOSER_ERROR; parser 123 ext/psych/yaml/loader.c parser->problem = problem; parser 124 ext/psych/yaml/loader.c parser->problem_mark = problem_mark; parser 138 ext/psych/yaml/loader.c parser->error = YAML_COMPOSER_ERROR; parser 139 ext/psych/yaml/loader.c parser->context = context; parser 140 ext/psych/yaml/loader.c parser->context_mark = context_mark; parser 141 ext/psych/yaml/loader.c parser->problem = problem; parser 142 ext/psych/yaml/loader.c parser->problem_mark = problem_mark; parser 154 ext/psych/yaml/loader.c while (!STACK_EMPTY(parser, parser->aliases)) { parser 155 ext/psych/yaml/loader.c yaml_free(POP(parser, parser->aliases).anchor); parser 157 ext/psych/yaml/loader.c STACK_DEL(parser, parser->aliases); parser 172 ext/psych/yaml/loader.c parser->document->version_directive parser 174 ext/psych/yaml/loader.c parser->document->tag_directives.start parser 176 ext/psych/yaml/loader.c parser->document->tag_directives.end parser 178 ext/psych/yaml/loader.c parser->document->start_implicit parser 180 ext/psych/yaml/loader.c parser->document->start_mark = first_event->start_mark; parser 182 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) return 0; parser 184 ext/psych/yaml/loader.c if (!yaml_parser_load_node(parser, &event)) return 0; parser 186 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) return 0; parser 190 ext/psych/yaml/loader.c parser->document->end_implicit = event.data.document_end.implicit; parser 191 ext/psych/yaml/loader.c parser->document->end_mark = event.end_mark; parser 205 ext/psych/yaml/loader.c return yaml_parser_load_alias(parser, first_event); parser 207 ext/psych/yaml/loader.c return yaml_parser_load_scalar(parser, first_event); parser 209 ext/psych/yaml/loader.c return yaml_parser_load_sequence(parser, first_event); parser 211 ext/psych/yaml/loader.c return yaml_parser_load_mapping(parser, first_event); parser 235 ext/psych/yaml/loader.c data.mark = parser->document->nodes.start[index-1].start_mark; parser 237 ext/psych/yaml/loader.c for (alias_data = parser->aliases.start; parser 238 ext/psych/yaml/loader.c alias_data != parser->aliases.top; alias_data ++) { parser 241 ext/psych/yaml/loader.c return yaml_parser_set_composer_error_context(parser, parser 247 ext/psych/yaml/loader.c if (!PUSH(parser, parser->aliases, data)) { parser 265 ext/psych/yaml/loader.c for (alias_data = parser->aliases.start; parser 266 ext/psych/yaml/loader.c alias_data != parser->aliases.top; alias_data ++) { parser 274 ext/psych/yaml/loader.c return yaml_parser_set_composer_error(parser, "found undefined alias", parser 290 ext/psych/yaml/loader.c if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) goto error; parser 302 ext/psych/yaml/loader.c if (!PUSH(parser, parser->document->nodes, node)) goto error; parser 304 ext/psych/yaml/loader.c node_index = parser->document->nodes.top - parser->document->nodes.start; parser 310 ext/psych/yaml/loader.c if (!yaml_parser_register_anchor(parser, index, parser 340 ext/psych/yaml/loader.c if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) goto error; parser 348 ext/psych/yaml/loader.c if (!STACK_INIT(parser, items, INITIAL_STACK_SIZE)) goto error; parser 354 ext/psych/yaml/loader.c if (!PUSH(parser, parser->document->nodes, node)) goto error; parser 356 ext/psych/yaml/loader.c node_index = parser->document->nodes.top - parser->document->nodes.start; parser 362 ext/psych/yaml/loader.c if (!yaml_parser_register_anchor(parser, index, parser 365 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) return 0; parser 368 ext/psych/yaml/loader.c if (!STACK_LIMIT(parser, parser 369 ext/psych/yaml/loader.c parser->document->nodes.start[index-1].data.sequence.items, parser 371 ext/psych/yaml/loader.c item_index = yaml_parser_load_node(parser, &event); parser 373 ext/psych/yaml/loader.c if (!PUSH(parser, parser 374 ext/psych/yaml/loader.c parser->document->nodes.start[index-1].data.sequence.items, parser 376 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) return 0; parser 379 ext/psych/yaml/loader.c parser->document->nodes.start[index-1].end_mark = event.end_mark; parser 408 ext/psych/yaml/loader.c if (!STACK_LIMIT(parser, parser->document->nodes, INT_MAX-1)) goto error; parser 416 ext/psych/yaml/loader.c if (!STACK_INIT(parser, pairs, INITIAL_STACK_SIZE)) goto error; parser 422 ext/psych/yaml/loader.c if (!PUSH(parser, parser->document->nodes, node)) goto error; parser 424 ext/psych/yaml/loader.c node_index = parser->document->nodes.top - parser->document->nodes.start; parser 430 ext/psych/yaml/loader.c if (!yaml_parser_register_anchor(parser, index, parser 433 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) return 0; parser 436 ext/psych/yaml/loader.c if (!STACK_LIMIT(parser, parser 437 ext/psych/yaml/loader.c parser->document->nodes.start[index-1].data.mapping.pairs, parser 439 ext/psych/yaml/loader.c pair.key = yaml_parser_load_node(parser, &event); parser 441 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) return 0; parser 442 ext/psych/yaml/loader.c pair.value = yaml_parser_load_node(parser, &event); parser 444 ext/psych/yaml/loader.c if (!PUSH(parser, parser 445 ext/psych/yaml/loader.c parser->document->nodes.start[index-1].data.mapping.pairs, parser 447 ext/psych/yaml/loader.c if (!yaml_parser_parse(parser, &event)) return 0; parser 450 ext/psych/yaml/loader.c parser->document->nodes.start[index-1].end_mark = event.end_mark; parser 49 ext/psych/yaml/parser.c ((parser->token_available || yaml_parser_fetch_more_tokens(parser)) ? \ parser 50 ext/psych/yaml/parser.c parser->tokens.head : NULL) parser 57 ext/psych/yaml/parser.c (parser->token_available = 0, \ parser 58 ext/psych/yaml/parser.c parser->tokens_parsed ++, \ parser 59 ext/psych/yaml/parser.c parser->stream_end_produced = \ parser 60 ext/psych/yaml/parser.c (parser->tokens.head->type == YAML_STREAM_END_TOKEN), \ parser 61 ext/psych/yaml/parser.c parser->tokens.head ++) parser 172 ext/psych/yaml/parser.c assert(parser); /* Non-NULL parser object is expected. */ parser 181 ext/psych/yaml/parser.c if (parser->stream_end_produced || parser->error || parser 182 ext/psych/yaml/parser.c parser->state == YAML_PARSE_END_STATE) { parser 188 ext/psych/yaml/parser.c return yaml_parser_state_machine(parser, event); parser 199 ext/psych/yaml/parser.c parser->error = YAML_PARSER_ERROR; parser 200 ext/psych/yaml/parser.c parser->problem = problem; parser 201 ext/psych/yaml/parser.c parser->problem_mark = problem_mark; parser 211 ext/psych/yaml/parser.c parser->error = YAML_PARSER_ERROR; parser 212 ext/psych/yaml/parser.c parser->context = context; parser 213 ext/psych/yaml/parser.c parser->context_mark = context_mark; parser 214 ext/psych/yaml/parser.c parser->problem = problem; parser 215 ext/psych/yaml/parser.c parser->problem_mark = problem_mark; parser 228 ext/psych/yaml/parser.c switch (parser->state) parser 231 ext/psych/yaml/parser.c return yaml_parser_parse_stream_start(parser, event); parser 234 ext/psych/yaml/parser.c return yaml_parser_parse_document_start(parser, event, 1); parser 237 ext/psych/yaml/parser.c return yaml_parser_parse_document_start(parser, event, 0); parser 240 ext/psych/yaml/parser.c return yaml_parser_parse_document_content(parser, event); parser 243 ext/psych/yaml/parser.c return yaml_parser_parse_document_end(parser, event); parser 246 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 1, 0); parser 249 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 1, 1); parser 252 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 0, 0); parser 255 ext/psych/yaml/parser.c return yaml_parser_parse_block_sequence_entry(parser, event, 1); parser 258 ext/psych/yaml/parser.c return yaml_parser_parse_block_sequence_entry(parser, event, 0); parser 261 ext/psych/yaml/parser.c return yaml_parser_parse_indentless_sequence_entry(parser, event); parser 264 ext/psych/yaml/parser.c return yaml_parser_parse_block_mapping_key(parser, event, 1); parser 267 ext/psych/yaml/parser.c return yaml_parser_parse_block_mapping_key(parser, event, 0); parser 270 ext/psych/yaml/parser.c return yaml_parser_parse_block_mapping_value(parser, event); parser 273 ext/psych/yaml/parser.c return yaml_parser_parse_flow_sequence_entry(parser, event, 1); parser 276 ext/psych/yaml/parser.c return yaml_parser_parse_flow_sequence_entry(parser, event, 0); parser 279 ext/psych/yaml/parser.c return yaml_parser_parse_flow_sequence_entry_mapping_key(parser, event); parser 282 ext/psych/yaml/parser.c return yaml_parser_parse_flow_sequence_entry_mapping_value(parser, event); parser 285 ext/psych/yaml/parser.c return yaml_parser_parse_flow_sequence_entry_mapping_end(parser, event); parser 288 ext/psych/yaml/parser.c return yaml_parser_parse_flow_mapping_key(parser, event, 1); parser 291 ext/psych/yaml/parser.c return yaml_parser_parse_flow_mapping_key(parser, event, 0); parser 294 ext/psych/yaml/parser.c return yaml_parser_parse_flow_mapping_value(parser, event, 0); parser 297 ext/psych/yaml/parser.c return yaml_parser_parse_flow_mapping_value(parser, event, 1); parser 317 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 321 ext/psych/yaml/parser.c return yaml_parser_set_parser_error(parser, parser 325 ext/psych/yaml/parser.c parser->state = YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE; parser 328 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 352 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 360 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 361 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 373 ext/psych/yaml/parser.c if (!yaml_parser_process_directives(parser, NULL, NULL, NULL)) parser 375 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, YAML_PARSE_DOCUMENT_END_STATE)) parser 377 ext/psych/yaml/parser.c parser->state = YAML_PARSE_BLOCK_NODE_STATE; parser 389 ext/psych/yaml/parser.c if (!yaml_parser_process_directives(parser, &version_directive, parser 392 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 395 ext/psych/yaml/parser.c yaml_parser_set_parser_error(parser, parser 399 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, YAML_PARSE_DOCUMENT_END_STATE)) parser 401 ext/psych/yaml/parser.c parser->state = YAML_PARSE_DOCUMENT_CONTENT_STATE; parser 406 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 416 ext/psych/yaml/parser.c parser->state = YAML_PARSE_END_STATE; parser 418 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 444 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 452 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 453 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, parser 457 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 1, 0); parser 476 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 483 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 487 ext/psych/yaml/parser.c while (!STACK_EMPTY(parser, parser->tag_directives)) { parser 488 ext/psych/yaml/parser.c yaml_tag_directive_t tag_directive = POP(parser, parser->tag_directives); parser 493 ext/psych/yaml/parser.c parser->state = YAML_PARSE_DOCUMENT_START_STATE; parser 540 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 545 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 548 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 561 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 562 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 570 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 571 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 581 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 582 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 588 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 589 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 602 ext/psych/yaml/parser.c for (tag_directive = parser->tag_directives.start; parser 603 ext/psych/yaml/parser.c tag_directive != parser->tag_directives.top; parser 610 ext/psych/yaml/parser.c parser->error = YAML_MEMORY_ERROR; parser 623 ext/psych/yaml/parser.c yaml_parser_set_parser_error_context(parser, parser 634 ext/psych/yaml/parser.c parser->state = YAML_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE; parser 651 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 656 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 661 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE; parser 668 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_MAPPING_FIRST_KEY_STATE; parser 675 ext/psych/yaml/parser.c parser->state = YAML_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE; parser 682 ext/psych/yaml/parser.c parser->state = YAML_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE; parser 690 ext/psych/yaml/parser.c parser->error = YAML_MEMORY_ERROR; parser 694 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 701 ext/psych/yaml/parser.c yaml_parser_set_parser_error_context(parser, parser 732 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 733 ext/psych/yaml/parser.c if (!PUSH(parser, parser->marks, token->start_mark)) parser 735 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 738 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 744 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 745 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 749 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 752 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 1, 0); parser 755 ext/psych/yaml/parser.c parser->state = YAML_PARSE_BLOCK_SEQUENCE_ENTRY_STATE; parser 756 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, mark); parser 762 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 763 ext/psych/yaml/parser.c (void)POP(parser, parser->marks); parser 765 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 771 ext/psych/yaml/parser.c return yaml_parser_set_parser_error_context(parser, parser 772 ext/psych/yaml/parser.c "while parsing a block collection", POP(parser, parser->marks), parser 789 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 795 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 796 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 802 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 805 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 1, 0); parser 808 ext/psych/yaml/parser.c parser->state = YAML_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE; parser 809 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, mark); parser 815 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 840 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 841 ext/psych/yaml/parser.c if (!PUSH(parser, parser->marks, token->start_mark)) parser 843 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 846 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 852 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 853 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 858 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 861 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 1, 1); parser 864 ext/psych/yaml/parser.c parser->state = YAML_PARSE_BLOCK_MAPPING_VALUE_STATE; parser 865 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, mark); parser 871 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 872 ext/psych/yaml/parser.c (void)POP(parser, parser->marks); parser 874 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 880 ext/psych/yaml/parser.c return yaml_parser_set_parser_error_context(parser, parser 881 ext/psych/yaml/parser.c "while parsing a block mapping", POP(parser, parser->marks), parser 904 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 910 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 911 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 916 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 919 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 1, 1); parser 922 ext/psych/yaml/parser.c parser->state = YAML_PARSE_BLOCK_MAPPING_KEY_STATE; parser 923 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, mark); parser 929 ext/psych/yaml/parser.c parser->state = YAML_PARSE_BLOCK_MAPPING_KEY_STATE; parser 930 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, token->start_mark); parser 955 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 956 ext/psych/yaml/parser.c if (!PUSH(parser, parser->marks, token->start_mark)) parser 958 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 961 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 968 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 969 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 973 ext/psych/yaml/parser.c return yaml_parser_set_parser_error_context(parser, parser 974 ext/psych/yaml/parser.c "while parsing a flow sequence", POP(parser, parser->marks), parser 980 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE; parser 984 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 989 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 992 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 0, 0); parser 996 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 997 ext/psych/yaml/parser.c (void)POP(parser, parser->marks); parser 999 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1015 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1020 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 1023 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 0, 0); parser 1027 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1028 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE; parser 1029 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, mark); parser 1045 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1049 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1050 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1054 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 1057 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 0, 0); parser 1060 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE; parser 1061 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, token->start_mark); parser 1076 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1079 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_SEQUENCE_ENTRY_STATE; parser 1106 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1107 ext/psych/yaml/parser.c if (!PUSH(parser, parser->marks, token->start_mark)) parser 1109 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1112 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1119 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1120 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1124 ext/psych/yaml/parser.c return yaml_parser_set_parser_error_context(parser, parser 1125 ext/psych/yaml/parser.c "while parsing a flow mapping", POP(parser, parser->marks), parser 1131 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1132 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1137 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 1140 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 0, 0); parser 1143 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_MAPPING_VALUE_STATE; parser 1144 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, parser 1149 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 1152 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 0, 0); parser 1156 ext/psych/yaml/parser.c parser->state = POP(parser, parser->states); parser 1157 ext/psych/yaml/parser.c (void)POP(parser, parser->marks); parser 1159 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1175 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1179 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_MAPPING_KEY_STATE; parser 1180 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, parser 1185 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1186 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1190 ext/psych/yaml/parser.c if (!PUSH(parser, parser->states, parser 1193 ext/psych/yaml/parser.c return yaml_parser_parse_node(parser, event, 0, 0); parser 1197 ext/psych/yaml/parser.c parser->state = YAML_PARSE_FLOW_MAPPING_KEY_STATE; parser 1198 ext/psych/yaml/parser.c return yaml_parser_process_empty_scalar(parser, event, token->start_mark); parser 1213 ext/psych/yaml/parser.c parser->error = YAML_MEMORY_ERROR; parser 1248 ext/psych/yaml/parser.c if (!STACK_INIT(parser, tag_directives, INITIAL_STACK_SIZE)) parser 1251 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1259 ext/psych/yaml/parser.c yaml_parser_set_parser_error(parser, parser 1265 ext/psych/yaml/parser.c yaml_parser_set_parser_error(parser, parser 1271 ext/psych/yaml/parser.c parser->error = YAML_MEMORY_ERROR; parser 1283 ext/psych/yaml/parser.c if (!yaml_parser_append_tag_directive(parser, value, 0, parser 1286 ext/psych/yaml/parser.c if (!PUSH(parser, tag_directives, value)) parser 1290 ext/psych/yaml/parser.c SKIP_TOKEN(parser); parser 1291 ext/psych/yaml/parser.c token = PEEK_TOKEN(parser); parser 1297 ext/psych/yaml/parser.c if (!yaml_parser_append_tag_directive(parser, *default_tag_directive, 1, parser 1306 ext/psych/yaml/parser.c if (STACK_EMPTY(parser, tag_directives)) { parser 1308 ext/psych/yaml/parser.c STACK_DEL(parser, tag_directives); parser 1316 ext/psych/yaml/parser.c STACK_DEL(parser, tag_directives); parser 1323 ext/psych/yaml/parser.c while (!STACK_EMPTY(parser, tag_directives)) { parser 1324 ext/psych/yaml/parser.c yaml_tag_directive_t tag_directive = POP(parser, tag_directives); parser 1328 ext/psych/yaml/parser.c STACK_DEL(parser, tag_directives); parser 1343 ext/psych/yaml/parser.c for (tag_directive = parser->tag_directives.start; parser 1344 ext/psych/yaml/parser.c tag_directive != parser->tag_directives.top; tag_directive ++) { parser 1348 ext/psych/yaml/parser.c return yaml_parser_set_parser_error(parser, parser 1356 ext/psych/yaml/parser.c parser->error = YAML_MEMORY_ERROR; parser 1360 ext/psych/yaml/parser.c if (!PUSH(parser, parser->tag_directives, copy)) parser 29 ext/psych/yaml/reader.c parser->error = YAML_READER_ERROR; parser 30 ext/psych/yaml/reader.c parser->problem = problem; parser 31 ext/psych/yaml/reader.c parser->problem_offset = offset; parser 32 ext/psych/yaml/reader.c parser->problem_value = value; parser 55 ext/psych/yaml/reader.c while (!parser->eof parser 56 ext/psych/yaml/reader.c && parser->raw_buffer.last - parser->raw_buffer.pointer < 3) { parser 57 ext/psych/yaml/reader.c if (!yaml_parser_update_raw_buffer(parser)) { parser 64 ext/psych/yaml/reader.c if (parser->raw_buffer.last - parser->raw_buffer.pointer >= 2 parser 65 ext/psych/yaml/reader.c && !memcmp(parser->raw_buffer.pointer, BOM_UTF16LE, 2)) { parser 66 ext/psych/yaml/reader.c parser->encoding = YAML_UTF16LE_ENCODING; parser 67 ext/psych/yaml/reader.c parser->raw_buffer.pointer += 2; parser 68 ext/psych/yaml/reader.c parser->offset += 2; parser 70 ext/psych/yaml/reader.c else if (parser->raw_buffer.last - parser->raw_buffer.pointer >= 2 parser 71 ext/psych/yaml/reader.c && !memcmp(parser->raw_buffer.pointer, BOM_UTF16BE, 2)) { parser 72 ext/psych/yaml/reader.c parser->encoding = YAML_UTF16BE_ENCODING; parser 73 ext/psych/yaml/reader.c parser->raw_buffer.pointer += 2; parser 74 ext/psych/yaml/reader.c parser->offset += 2; parser 76 ext/psych/yaml/reader.c else if (parser->raw_buffer.last - parser->raw_buffer.pointer >= 3 parser 77 ext/psych/yaml/reader.c && !memcmp(parser->raw_buffer.pointer, BOM_UTF8, 3)) { parser 78 ext/psych/yaml/reader.c parser->encoding = YAML_UTF8_ENCODING; parser 79 ext/psych/yaml/reader.c parser->raw_buffer.pointer += 3; parser 80 ext/psych/yaml/reader.c parser->offset += 3; parser 83 ext/psych/yaml/reader.c parser->encoding = YAML_UTF8_ENCODING; parser 100 ext/psych/yaml/reader.c if (parser->raw_buffer.start == parser->raw_buffer.pointer parser 101 ext/psych/yaml/reader.c && parser->raw_buffer.last == parser->raw_buffer.end) parser 106 ext/psych/yaml/reader.c if (parser->eof) return 1; parser 110 ext/psych/yaml/reader.c if (parser->raw_buffer.start < parser->raw_buffer.pointer parser 111 ext/psych/yaml/reader.c && parser->raw_buffer.pointer < parser->raw_buffer.last) { parser 112 ext/psych/yaml/reader.c memmove(parser->raw_buffer.start, parser->raw_buffer.pointer, parser 113 ext/psych/yaml/reader.c parser->raw_buffer.last - parser->raw_buffer.pointer); parser 115 ext/psych/yaml/reader.c parser->raw_buffer.last -= parser 116 ext/psych/yaml/reader.c parser->raw_buffer.pointer - parser->raw_buffer.start; parser 117 ext/psych/yaml/reader.c parser->raw_buffer.pointer = parser->raw_buffer.start; parser 121 ext/psych/yaml/reader.c if (!parser->read_handler(parser->read_handler_data, parser->raw_buffer.last, parser 122 ext/psych/yaml/reader.c parser->raw_buffer.end - parser->raw_buffer.last, &size_read)) { parser 123 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, "input error", parser 124 ext/psych/yaml/reader.c parser->offset, -1); parser 126 ext/psych/yaml/reader.c parser->raw_buffer.last += size_read; parser 128 ext/psych/yaml/reader.c parser->eof = 1; parser 146 ext/psych/yaml/reader.c assert(parser->read_handler); /* Read handler must be set. */ parser 150 ext/psych/yaml/reader.c if (parser->eof && parser->raw_buffer.pointer == parser->raw_buffer.last) parser 155 ext/psych/yaml/reader.c if (parser->unread >= length) parser 160 ext/psych/yaml/reader.c if (!parser->encoding) { parser 161 ext/psych/yaml/reader.c if (!yaml_parser_determine_encoding(parser)) parser 167 ext/psych/yaml/reader.c if (parser->buffer.start < parser->buffer.pointer parser 168 ext/psych/yaml/reader.c && parser->buffer.pointer < parser->buffer.last) { parser 169 ext/psych/yaml/reader.c size_t size = parser->buffer.last - parser->buffer.pointer; parser 170 ext/psych/yaml/reader.c memmove(parser->buffer.start, parser->buffer.pointer, size); parser 171 ext/psych/yaml/reader.c parser->buffer.pointer = parser->buffer.start; parser 172 ext/psych/yaml/reader.c parser->buffer.last = parser->buffer.start + size; parser 174 ext/psych/yaml/reader.c else if (parser->buffer.pointer == parser->buffer.last) { parser 175 ext/psych/yaml/reader.c parser->buffer.pointer = parser->buffer.start; parser 176 ext/psych/yaml/reader.c parser->buffer.last = parser->buffer.start; parser 181 ext/psych/yaml/reader.c while (parser->unread < length) parser 185 ext/psych/yaml/reader.c if (!first || parser->raw_buffer.pointer == parser->raw_buffer.last) { parser 186 ext/psych/yaml/reader.c if (!yaml_parser_update_raw_buffer(parser)) return 0; parser 192 ext/psych/yaml/reader.c while (parser->raw_buffer.pointer != parser->raw_buffer.last) parser 200 ext/psych/yaml/reader.c size_t raw_unread = parser->raw_buffer.last - parser->raw_buffer.pointer; parser 204 ext/psych/yaml/reader.c switch (parser->encoding) parser 230 ext/psych/yaml/reader.c octet = parser->raw_buffer.pointer[0]; parser 239 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 241 ext/psych/yaml/reader.c parser->offset, octet); parser 246 ext/psych/yaml/reader.c if (parser->eof) { parser 247 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 249 ext/psych/yaml/reader.c parser->offset, -1); parser 266 ext/psych/yaml/reader.c octet = parser->raw_buffer.pointer[k]; parser 271 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 273 ext/psych/yaml/reader.c parser->offset+k, octet); parser 286 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 288 ext/psych/yaml/reader.c parser->offset, -1); parser 293 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 295 ext/psych/yaml/reader.c parser->offset, value); parser 302 ext/psych/yaml/reader.c low = (parser->encoding == YAML_UTF16LE_ENCODING ? 0 : 1); parser 303 ext/psych/yaml/reader.c high = (parser->encoding == YAML_UTF16LE_ENCODING ? 1 : 0); parser 334 ext/psych/yaml/reader.c if (parser->eof) { parser 335 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 337 ext/psych/yaml/reader.c parser->offset, -1); parser 345 ext/psych/yaml/reader.c value = parser->raw_buffer.pointer[low] parser 346 ext/psych/yaml/reader.c + (parser->raw_buffer.pointer[high] << 8); parser 351 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 353 ext/psych/yaml/reader.c parser->offset, value); parser 364 ext/psych/yaml/reader.c if (parser->eof) { parser 365 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 367 ext/psych/yaml/reader.c parser->offset, -1); parser 375 ext/psych/yaml/reader.c value2 = parser->raw_buffer.pointer[low+2] parser 376 ext/psych/yaml/reader.c + (parser->raw_buffer.pointer[high+2] << 8); parser 381 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 383 ext/psych/yaml/reader.c parser->offset+2, value2); parser 416 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, parser 418 ext/psych/yaml/reader.c parser->offset, value); parser 422 ext/psych/yaml/reader.c parser->raw_buffer.pointer += width; parser 423 ext/psych/yaml/reader.c parser->offset += width; parser 429 ext/psych/yaml/reader.c *(parser->buffer.last++) = value; parser 433 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0xC0 + (value >> 6); parser 434 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0x80 + (value & 0x3F); parser 438 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0xE0 + (value >> 12); parser 439 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0x80 + ((value >> 6) & 0x3F); parser 440 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0x80 + (value & 0x3F); parser 444 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0xF0 + (value >> 18); parser 445 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0x80 + ((value >> 12) & 0x3F); parser 446 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0x80 + ((value >> 6) & 0x3F); parser 447 ext/psych/yaml/reader.c *(parser->buffer.last++) = 0x80 + (value & 0x3F); parser 450 ext/psych/yaml/reader.c parser->unread ++; parser 455 ext/psych/yaml/reader.c if (parser->eof) { parser 456 ext/psych/yaml/reader.c *(parser->buffer.last++) = '\0'; parser 457 ext/psych/yaml/reader.c parser->unread ++; parser 463 ext/psych/yaml/reader.c if (parser->offset >= PTRDIFF_MAX) parser 464 ext/psych/yaml/reader.c return yaml_parser_set_reader_error(parser, "input is too long", parser 486 ext/psych/yaml/scanner.c (parser->unread >= (length) \ parser 488 ext/psych/yaml/scanner.c : yaml_parser_update_buffer(parser, (length))) parser 495 ext/psych/yaml/scanner.c (parser->mark.index ++, \ parser 496 ext/psych/yaml/scanner.c parser->mark.column ++, \ parser 497 ext/psych/yaml/scanner.c parser->unread --, \ parser 498 ext/psych/yaml/scanner.c parser->buffer.pointer += WIDTH(parser->buffer)) parser 501 ext/psych/yaml/scanner.c (IS_CRLF(parser->buffer) ? \ parser 502 ext/psych/yaml/scanner.c (parser->mark.index += 2, \ parser 503 ext/psych/yaml/scanner.c parser->mark.column = 0, \ parser 504 ext/psych/yaml/scanner.c parser->mark.line ++, \ parser 505 ext/psych/yaml/scanner.c parser->unread -= 2, \ parser 506 ext/psych/yaml/scanner.c parser->buffer.pointer += 2) : \ parser 507 ext/psych/yaml/scanner.c IS_BREAK(parser->buffer) ? \ parser 508 ext/psych/yaml/scanner.c (parser->mark.index ++, \ parser 509 ext/psych/yaml/scanner.c parser->mark.column = 0, \ parser 510 ext/psych/yaml/scanner.c parser->mark.line ++, \ parser 511 ext/psych/yaml/scanner.c parser->unread --, \ parser 512 ext/psych/yaml/scanner.c parser->buffer.pointer += WIDTH(parser->buffer)) : 0) parser 519 ext/psych/yaml/scanner.c (STRING_EXTEND(parser,string) ? \ parser 520 ext/psych/yaml/scanner.c (COPY(string,parser->buffer), \ parser 521 ext/psych/yaml/scanner.c parser->mark.index ++, \ parser 522 ext/psych/yaml/scanner.c parser->mark.column ++, \ parser 523 ext/psych/yaml/scanner.c parser->unread --, \ parser 531 ext/psych/yaml/scanner.c (STRING_EXTEND(parser,string) ? \ parser 532 ext/psych/yaml/scanner.c (((CHECK_AT(parser->buffer,'\r',0) \ parser 533 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer,'\n',1)) ? /* CR LF -> LF */ \ parser 535 ext/psych/yaml/scanner.c parser->buffer.pointer += 2, \ parser 536 ext/psych/yaml/scanner.c parser->mark.index += 2, \ parser 537 ext/psych/yaml/scanner.c parser->mark.column = 0, \ parser 538 ext/psych/yaml/scanner.c parser->mark.line ++, \ parser 539 ext/psych/yaml/scanner.c parser->unread -= 2) : \ parser 540 ext/psych/yaml/scanner.c (CHECK_AT(parser->buffer,'\r',0) \ parser 541 ext/psych/yaml/scanner.c || CHECK_AT(parser->buffer,'\n',0)) ? /* CR|LF -> LF */ \ parser 543 ext/psych/yaml/scanner.c parser->buffer.pointer ++, \ parser 544 ext/psych/yaml/scanner.c parser->mark.index ++, \ parser 545 ext/psych/yaml/scanner.c parser->mark.column = 0, \ parser 546 ext/psych/yaml/scanner.c parser->mark.line ++, \ parser 547 ext/psych/yaml/scanner.c parser->unread --) : \ parser 548 ext/psych/yaml/scanner.c (CHECK_AT(parser->buffer,'\xC2',0) \ parser 549 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer,'\x85',1)) ? /* NEL -> LF */ \ parser 551 ext/psych/yaml/scanner.c parser->buffer.pointer += 2, \ parser 552 ext/psych/yaml/scanner.c parser->mark.index ++, \ parser 553 ext/psych/yaml/scanner.c parser->mark.column = 0, \ parser 554 ext/psych/yaml/scanner.c parser->mark.line ++, \ parser 555 ext/psych/yaml/scanner.c parser->unread --) : \ parser 556 ext/psych/yaml/scanner.c (CHECK_AT(parser->buffer,'\xE2',0) && \ parser 557 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer,'\x80',1) && \ parser 558 ext/psych/yaml/scanner.c (CHECK_AT(parser->buffer,'\xA8',2) || \ parser 559 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer,'\xA9',2))) ? /* LS|PS -> LS|PS */ \ parser 560 ext/psych/yaml/scanner.c (*((string).pointer++) = *(parser->buffer.pointer++), \ parser 561 ext/psych/yaml/scanner.c *((string).pointer++) = *(parser->buffer.pointer++), \ parser 562 ext/psych/yaml/scanner.c *((string).pointer++) = *(parser->buffer.pointer++), \ parser 563 ext/psych/yaml/scanner.c parser->mark.index ++, \ parser 564 ext/psych/yaml/scanner.c parser->mark.column = 0, \ parser 565 ext/psych/yaml/scanner.c parser->mark.line ++, \ parser 566 ext/psych/yaml/scanner.c parser->unread --) : 0), \ parser 744 ext/psych/yaml/scanner.c assert(parser); /* Non-NULL parser object is expected. */ parser 753 ext/psych/yaml/scanner.c if (parser->stream_end_produced || parser->error) { parser 759 ext/psych/yaml/scanner.c if (!parser->token_available) { parser 760 ext/psych/yaml/scanner.c if (!yaml_parser_fetch_more_tokens(parser)) parser 766 ext/psych/yaml/scanner.c *token = DEQUEUE(parser, parser->tokens); parser 767 ext/psych/yaml/scanner.c parser->token_available = 0; parser 768 ext/psych/yaml/scanner.c parser->tokens_parsed ++; parser 771 ext/psych/yaml/scanner.c parser->stream_end_produced = 1; parser 785 ext/psych/yaml/scanner.c parser->error = YAML_SCANNER_ERROR; parser 786 ext/psych/yaml/scanner.c parser->context = context; parser 787 ext/psych/yaml/scanner.c parser->context_mark = context_mark; parser 788 ext/psych/yaml/scanner.c parser->problem = problem; parser 789 ext/psych/yaml/scanner.c parser->problem_mark = parser->mark; parser 814 ext/psych/yaml/scanner.c if (parser->tokens.head == parser->tokens.tail) parser 826 ext/psych/yaml/scanner.c if (!yaml_parser_stale_simple_keys(parser)) parser 829 ext/psych/yaml/scanner.c for (simple_key = parser->simple_keys.start; parser 830 ext/psych/yaml/scanner.c simple_key != parser->simple_keys.top; simple_key++) { parser 832 ext/psych/yaml/scanner.c && simple_key->token_number == parser->tokens_parsed) { parser 846 ext/psych/yaml/scanner.c if (!yaml_parser_fetch_next_token(parser)) parser 850 ext/psych/yaml/scanner.c parser->token_available = 1; parser 864 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) parser 869 ext/psych/yaml/scanner.c if (!parser->stream_start_produced) parser 870 ext/psych/yaml/scanner.c return yaml_parser_fetch_stream_start(parser); parser 874 ext/psych/yaml/scanner.c if (!yaml_parser_scan_to_next_token(parser)) parser 879 ext/psych/yaml/scanner.c if (!yaml_parser_stale_simple_keys(parser)) parser 884 ext/psych/yaml/scanner.c if (!yaml_parser_unroll_indent(parser, parser->mark.column)) parser 892 ext/psych/yaml/scanner.c if (!CACHE(parser, 4)) parser 897 ext/psych/yaml/scanner.c if (IS_Z(parser->buffer)) parser 898 ext/psych/yaml/scanner.c return yaml_parser_fetch_stream_end(parser); parser 902 ext/psych/yaml/scanner.c if (parser->mark.column == 0 && CHECK(parser->buffer, '%')) parser 903 ext/psych/yaml/scanner.c return yaml_parser_fetch_directive(parser); parser 907 ext/psych/yaml/scanner.c if (parser->mark.column == 0 parser 908 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer, '-', 0) parser 909 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer, '-', 1) parser 910 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer, '-', 2) parser 911 ext/psych/yaml/scanner.c && IS_BLANKZ_AT(parser->buffer, 3)) parser 912 ext/psych/yaml/scanner.c return yaml_parser_fetch_document_indicator(parser, parser 917 ext/psych/yaml/scanner.c if (parser->mark.column == 0 parser 918 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer, '.', 0) parser 919 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer, '.', 1) parser 920 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer, '.', 2) parser 921 ext/psych/yaml/scanner.c && IS_BLANKZ_AT(parser->buffer, 3)) parser 922 ext/psych/yaml/scanner.c return yaml_parser_fetch_document_indicator(parser, parser 927 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '[')) parser 928 ext/psych/yaml/scanner.c return yaml_parser_fetch_flow_collection_start(parser, parser 933 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '{')) parser 934 ext/psych/yaml/scanner.c return yaml_parser_fetch_flow_collection_start(parser, parser 939 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, ']')) parser 940 ext/psych/yaml/scanner.c return yaml_parser_fetch_flow_collection_end(parser, parser 945 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '}')) parser 946 ext/psych/yaml/scanner.c return yaml_parser_fetch_flow_collection_end(parser, parser 951 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, ',')) parser 952 ext/psych/yaml/scanner.c return yaml_parser_fetch_flow_entry(parser); parser 956 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '-') && IS_BLANKZ_AT(parser->buffer, 1)) parser 957 ext/psych/yaml/scanner.c return yaml_parser_fetch_block_entry(parser); parser 961 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '?') parser 962 ext/psych/yaml/scanner.c && (parser->flow_level || IS_BLANKZ_AT(parser->buffer, 1))) parser 963 ext/psych/yaml/scanner.c return yaml_parser_fetch_key(parser); parser 967 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, ':') parser 968 ext/psych/yaml/scanner.c && (parser->flow_level || IS_BLANKZ_AT(parser->buffer, 1))) parser 969 ext/psych/yaml/scanner.c return yaml_parser_fetch_value(parser); parser 973 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '*')) parser 974 ext/psych/yaml/scanner.c return yaml_parser_fetch_anchor(parser, YAML_ALIAS_TOKEN); parser 978 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '&')) parser 979 ext/psych/yaml/scanner.c return yaml_parser_fetch_anchor(parser, YAML_ANCHOR_TOKEN); parser 983 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '!')) parser 984 ext/psych/yaml/scanner.c return yaml_parser_fetch_tag(parser); parser 988 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '|') && !parser->flow_level) parser 989 ext/psych/yaml/scanner.c return yaml_parser_fetch_block_scalar(parser, 1); parser 993 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '>') && !parser->flow_level) parser 994 ext/psych/yaml/scanner.c return yaml_parser_fetch_block_scalar(parser, 0); parser 998 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '\'')) parser 999 ext/psych/yaml/scanner.c return yaml_parser_fetch_flow_scalar(parser, 1); parser 1003 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '"')) parser 1004 ext/psych/yaml/scanner.c return yaml_parser_fetch_flow_scalar(parser, 0); parser 1025 ext/psych/yaml/scanner.c if (!(IS_BLANKZ(parser->buffer) || CHECK(parser->buffer, '-') parser 1026 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '?') || CHECK(parser->buffer, ':') parser 1027 ext/psych/yaml/scanner.c || CHECK(parser->buffer, ',') || CHECK(parser->buffer, '[') parser 1028 ext/psych/yaml/scanner.c || CHECK(parser->buffer, ']') || CHECK(parser->buffer, '{') parser 1029 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '}') || CHECK(parser->buffer, '#') parser 1030 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '&') || CHECK(parser->buffer, '*') parser 1031 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '!') || CHECK(parser->buffer, '|') parser 1032 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '>') || CHECK(parser->buffer, '\'') parser 1033 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '"') || CHECK(parser->buffer, '%') parser 1034 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '@') || CHECK(parser->buffer, '`')) || parser 1035 ext/psych/yaml/scanner.c (CHECK(parser->buffer, '-') && !IS_BLANK_AT(parser->buffer, 1)) || parser 1036 ext/psych/yaml/scanner.c (!parser->flow_level && parser 1037 ext/psych/yaml/scanner.c (CHECK(parser->buffer, '?') || CHECK(parser->buffer, ':')) parser 1038 ext/psych/yaml/scanner.c && !IS_BLANKZ_AT(parser->buffer, 1))) parser 1039 ext/psych/yaml/scanner.c return yaml_parser_fetch_plain_scalar(parser); parser 1045 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, parser 1046 ext/psych/yaml/scanner.c "while scanning for the next token", parser->mark, parser 1062 ext/psych/yaml/scanner.c for (simple_key = parser->simple_keys.start; parser 1063 ext/psych/yaml/scanner.c simple_key != parser->simple_keys.top; simple_key ++) parser 1073 ext/psych/yaml/scanner.c && (simple_key->mark.line < parser->mark.line parser 1074 ext/psych/yaml/scanner.c || simple_key->mark.index+1024 < parser->mark.index)) { parser 1079 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, parser 1105 ext/psych/yaml/scanner.c int required = (!parser->flow_level parser 1106 ext/psych/yaml/scanner.c && parser->indent == (ptrdiff_t)parser->mark.column); parser 1112 ext/psych/yaml/scanner.c if (parser->simple_key_allowed) parser 1118 ext/psych/yaml/scanner.c parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head); parser 1119 ext/psych/yaml/scanner.c simple_key.mark = parser->mark; parser 1121 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) return 0; parser 1123 ext/psych/yaml/scanner.c *(parser->simple_keys.top-1) = simple_key; parser 1136 ext/psych/yaml/scanner.c yaml_simple_key_t *simple_key = parser->simple_keys.top-1; parser 1143 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, parser 1167 ext/psych/yaml/scanner.c if (!PUSH(parser, parser->simple_keys, empty_simple_key)) parser 1172 ext/psych/yaml/scanner.c if (parser->flow_level == INT_MAX) { parser 1173 ext/psych/yaml/scanner.c parser->error = YAML_MEMORY_ERROR; parser 1177 ext/psych/yaml/scanner.c parser->flow_level++; parser 1189 ext/psych/yaml/scanner.c if (parser->flow_level) { parser 1190 ext/psych/yaml/scanner.c parser->flow_level --; parser 1191 ext/psych/yaml/scanner.c (void)POP(parser, parser->simple_keys); parser 1212 ext/psych/yaml/scanner.c if (parser->flow_level) parser 1215 ext/psych/yaml/scanner.c if (parser->indent < column) parser 1222 ext/psych/yaml/scanner.c if (!PUSH(parser, parser->indents, parser->indent)) parser 1227 ext/psych/yaml/scanner.c parser->error = YAML_MEMORY_ERROR; parser 1232 ext/psych/yaml/scanner.c parser->indent = (int)column; parser 1239 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1243 ext/psych/yaml/scanner.c if (!QUEUE_INSERT(parser, parser 1244 ext/psych/yaml/scanner.c parser->tokens, number - parser->tokens_parsed, token)) parser 1266 ext/psych/yaml/scanner.c if (parser->flow_level) parser 1271 ext/psych/yaml/scanner.c while (parser->indent > column) parser 1275 ext/psych/yaml/scanner.c TOKEN_INIT(token, YAML_BLOCK_END_TOKEN, parser->mark, parser->mark); parser 1277 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1282 ext/psych/yaml/scanner.c parser->indent = POP(parser, parser->indents); parser 1300 ext/psych/yaml/scanner.c parser->indent = -1; parser 1304 ext/psych/yaml/scanner.c if (!PUSH(parser, parser->simple_keys, simple_key)) parser 1309 ext/psych/yaml/scanner.c parser->simple_key_allowed = 1; parser 1313 ext/psych/yaml/scanner.c parser->stream_start_produced = 1; parser 1317 ext/psych/yaml/scanner.c STREAM_START_TOKEN_INIT(token, parser->encoding, parser 1318 ext/psych/yaml/scanner.c parser->mark, parser->mark); parser 1320 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1337 ext/psych/yaml/scanner.c if (parser->mark.column != 0) { parser 1338 ext/psych/yaml/scanner.c parser->mark.column = 0; parser 1339 ext/psych/yaml/scanner.c parser->mark.line ++; parser 1344 ext/psych/yaml/scanner.c if (!yaml_parser_unroll_indent(parser, -1)) parser 1349 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1352 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1356 ext/psych/yaml/scanner.c STREAM_END_TOKEN_INIT(token, parser->mark, parser->mark); parser 1358 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1375 ext/psych/yaml/scanner.c if (!yaml_parser_unroll_indent(parser, -1)) parser 1380 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1383 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1387 ext/psych/yaml/scanner.c if (!yaml_parser_scan_directive(parser, &token)) parser 1392 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) { parser 1413 ext/psych/yaml/scanner.c if (!yaml_parser_unroll_indent(parser, -1)) parser 1418 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1421 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1425 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 1427 ext/psych/yaml/scanner.c SKIP(parser); parser 1428 ext/psych/yaml/scanner.c SKIP(parser); parser 1429 ext/psych/yaml/scanner.c SKIP(parser); parser 1431 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 1439 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1458 ext/psych/yaml/scanner.c if (!yaml_parser_save_simple_key(parser)) parser 1463 ext/psych/yaml/scanner.c if (!yaml_parser_increase_flow_level(parser)) parser 1468 ext/psych/yaml/scanner.c parser->simple_key_allowed = 1; parser 1472 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 1473 ext/psych/yaml/scanner.c SKIP(parser); parser 1474 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 1482 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1501 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1506 ext/psych/yaml/scanner.c if (!yaml_parser_decrease_flow_level(parser)) parser 1511 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1515 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 1516 ext/psych/yaml/scanner.c SKIP(parser); parser 1517 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 1525 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1543 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1548 ext/psych/yaml/scanner.c parser->simple_key_allowed = 1; parser 1552 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 1553 ext/psych/yaml/scanner.c SKIP(parser); parser 1554 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 1560 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1578 ext/psych/yaml/scanner.c if (!parser->flow_level) parser 1582 ext/psych/yaml/scanner.c if (!parser->simple_key_allowed) { parser 1583 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, NULL, parser->mark, parser 1589 ext/psych/yaml/scanner.c if (!yaml_parser_roll_indent(parser, parser->mark.column, -1, parser 1590 ext/psych/yaml/scanner.c YAML_BLOCK_SEQUENCE_START_TOKEN, parser->mark)) parser 1604 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1609 ext/psych/yaml/scanner.c parser->simple_key_allowed = 1; parser 1613 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 1614 ext/psych/yaml/scanner.c SKIP(parser); parser 1615 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 1621 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1639 ext/psych/yaml/scanner.c if (!parser->flow_level) parser 1643 ext/psych/yaml/scanner.c if (!parser->simple_key_allowed) { parser 1644 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, NULL, parser->mark, parser 1650 ext/psych/yaml/scanner.c if (!yaml_parser_roll_indent(parser, parser->mark.column, -1, parser 1651 ext/psych/yaml/scanner.c YAML_BLOCK_MAPPING_START_TOKEN, parser->mark)) parser 1657 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1662 ext/psych/yaml/scanner.c parser->simple_key_allowed = (!parser->flow_level); parser 1666 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 1667 ext/psych/yaml/scanner.c SKIP(parser); parser 1668 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 1674 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1689 ext/psych/yaml/scanner.c yaml_simple_key_t *simple_key = parser->simple_keys.top-1; parser 1700 ext/psych/yaml/scanner.c if (!QUEUE_INSERT(parser, parser->tokens, parser 1701 ext/psych/yaml/scanner.c simple_key->token_number - parser->tokens_parsed, token)) parser 1706 ext/psych/yaml/scanner.c if (!yaml_parser_roll_indent(parser, simple_key->mark.column, parser 1717 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1725 ext/psych/yaml/scanner.c if (!parser->flow_level) parser 1729 ext/psych/yaml/scanner.c if (!parser->simple_key_allowed) { parser 1730 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, NULL, parser->mark, parser 1736 ext/psych/yaml/scanner.c if (!yaml_parser_roll_indent(parser, parser->mark.column, -1, parser 1737 ext/psych/yaml/scanner.c YAML_BLOCK_MAPPING_START_TOKEN, parser->mark)) parser 1743 ext/psych/yaml/scanner.c parser->simple_key_allowed = (!parser->flow_level); parser 1748 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 1749 ext/psych/yaml/scanner.c SKIP(parser); parser 1750 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 1756 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) parser 1773 ext/psych/yaml/scanner.c if (!yaml_parser_save_simple_key(parser)) parser 1778 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1782 ext/psych/yaml/scanner.c if (!yaml_parser_scan_anchor(parser, &token, type)) parser 1785 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) { parser 1803 ext/psych/yaml/scanner.c if (!yaml_parser_save_simple_key(parser)) parser 1808 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1812 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag(parser, &token)) parser 1815 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) { parser 1834 ext/psych/yaml/scanner.c if (!yaml_parser_remove_simple_key(parser)) parser 1839 ext/psych/yaml/scanner.c parser->simple_key_allowed = 1; parser 1843 ext/psych/yaml/scanner.c if (!yaml_parser_scan_block_scalar(parser, &token, literal)) parser 1846 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) { parser 1865 ext/psych/yaml/scanner.c if (!yaml_parser_save_simple_key(parser)) parser 1870 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1874 ext/psych/yaml/scanner.c if (!yaml_parser_scan_flow_scalar(parser, &token, single)) parser 1877 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) { parser 1896 ext/psych/yaml/scanner.c if (!yaml_parser_save_simple_key(parser)) parser 1901 ext/psych/yaml/scanner.c parser->simple_key_allowed = 0; parser 1905 ext/psych/yaml/scanner.c if (!yaml_parser_scan_plain_scalar(parser, &token)) parser 1908 ext/psych/yaml/scanner.c if (!ENQUEUE(parser, parser->tokens, token)) { parser 1929 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 1931 ext/psych/yaml/scanner.c if (parser->mark.column == 0 && IS_BOM(parser->buffer)) parser 1932 ext/psych/yaml/scanner.c SKIP(parser); parser 1944 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 1946 ext/psych/yaml/scanner.c while (CHECK(parser->buffer,' ') || parser 1947 ext/psych/yaml/scanner.c ((parser->flow_level || !parser->simple_key_allowed) && parser 1948 ext/psych/yaml/scanner.c CHECK(parser->buffer, '\t'))) { parser 1949 ext/psych/yaml/scanner.c SKIP(parser); parser 1950 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 1955 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '#')) { parser 1956 ext/psych/yaml/scanner.c while (!IS_BREAKZ(parser->buffer)) { parser 1957 ext/psych/yaml/scanner.c SKIP(parser); parser 1958 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 1964 ext/psych/yaml/scanner.c if (IS_BREAK(parser->buffer)) parser 1966 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) return 0; parser 1967 ext/psych/yaml/scanner.c SKIP_LINE(parser); parser 1971 ext/psych/yaml/scanner.c if (!parser->flow_level) { parser 1972 ext/psych/yaml/scanner.c parser->simple_key_allowed = 1; parser 2006 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 2008 ext/psych/yaml/scanner.c SKIP(parser); parser 2012 ext/psych/yaml/scanner.c if (!yaml_parser_scan_directive_name(parser, start_mark, &name)) parser 2021 ext/psych/yaml/scanner.c if (!yaml_parser_scan_version_directive_value(parser, start_mark, parser 2025 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 2039 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag_directive_value(parser, start_mark, parser 2043 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 2055 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a directive", parser 2062 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2064 ext/psych/yaml/scanner.c while (IS_BLANK(parser->buffer)) { parser 2065 ext/psych/yaml/scanner.c SKIP(parser); parser 2066 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2069 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '#')) { parser 2070 ext/psych/yaml/scanner.c while (!IS_BREAKZ(parser->buffer)) { parser 2071 ext/psych/yaml/scanner.c SKIP(parser); parser 2072 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2078 ext/psych/yaml/scanner.c if (!IS_BREAKZ(parser->buffer)) { parser 2079 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a directive", parser 2086 ext/psych/yaml/scanner.c if (IS_BREAK(parser->buffer)) { parser 2087 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 2088 ext/psych/yaml/scanner.c SKIP_LINE(parser); parser 2118 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; parser 2122 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2124 ext/psych/yaml/scanner.c while (IS_ALPHA(parser->buffer)) parser 2126 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 2127 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2133 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a directive", parser 2140 ext/psych/yaml/scanner.c if (!IS_BLANKZ(parser->buffer)) { parser 2141 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a directive", parser 2151 ext/psych/yaml/scanner.c STRING_DEL(parser, string); parser 2169 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 2171 ext/psych/yaml/scanner.c while (IS_BLANK(parser->buffer)) { parser 2172 ext/psych/yaml/scanner.c SKIP(parser); parser 2173 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 2178 ext/psych/yaml/scanner.c if (!yaml_parser_scan_version_directive_number(parser, start_mark, major)) parser 2183 ext/psych/yaml/scanner.c if (!CHECK(parser->buffer, '.')) { parser 2184 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", parser 2188 ext/psych/yaml/scanner.c SKIP(parser); parser 2192 ext/psych/yaml/scanner.c if (!yaml_parser_scan_version_directive_number(parser, start_mark, minor)) parser 2219 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 2221 ext/psych/yaml/scanner.c while (IS_DIGIT(parser->buffer)) parser 2226 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", parser 2230 ext/psych/yaml/scanner.c value = value*10 + AS_DIGIT(parser->buffer); parser 2232 ext/psych/yaml/scanner.c SKIP(parser); parser 2234 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 2240 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", parser 2266 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2268 ext/psych/yaml/scanner.c while (IS_BLANK(parser->buffer)) { parser 2269 ext/psych/yaml/scanner.c SKIP(parser); parser 2270 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2275 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag_handle(parser, 1, start_mark, &handle_value)) parser 2280 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2282 ext/psych/yaml/scanner.c if (!IS_BLANK(parser->buffer)) { parser 2283 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", parser 2290 ext/psych/yaml/scanner.c while (IS_BLANK(parser->buffer)) { parser 2291 ext/psych/yaml/scanner.c SKIP(parser); parser 2292 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2297 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag_uri(parser, 1, NULL, start_mark, &prefix_value)) parser 2302 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2304 ext/psych/yaml/scanner.c if (!IS_BLANKZ(parser->buffer)) { parser 2305 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", parser 2329 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; parser 2333 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 2335 ext/psych/yaml/scanner.c SKIP(parser); parser 2339 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2341 ext/psych/yaml/scanner.c while (IS_ALPHA(parser->buffer)) { parser 2342 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 2343 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2347 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 2356 ext/psych/yaml/scanner.c if (!length || !(IS_BLANKZ(parser->buffer) || CHECK(parser->buffer, '?') parser 2357 ext/psych/yaml/scanner.c || CHECK(parser->buffer, ':') || CHECK(parser->buffer, ',') parser 2358 ext/psych/yaml/scanner.c || CHECK(parser->buffer, ']') || CHECK(parser->buffer, '}') parser 2359 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '%') || CHECK(parser->buffer, '@') parser 2360 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '`'))) { parser 2361 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, type == YAML_ANCHOR_TOKEN ? parser 2379 ext/psych/yaml/scanner.c STRING_DEL(parser, string); parser 2394 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 2398 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 2400 ext/psych/yaml/scanner.c if (CHECK_AT(parser->buffer, '<', 1)) parser 2410 ext/psych/yaml/scanner.c SKIP(parser); parser 2411 ext/psych/yaml/scanner.c SKIP(parser); parser 2415 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag_uri(parser, 0, NULL, start_mark, &suffix)) parser 2420 ext/psych/yaml/scanner.c if (!CHECK(parser->buffer, '>')) { parser 2421 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a tag", parser 2426 ext/psych/yaml/scanner.c SKIP(parser); parser 2434 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag_handle(parser, 0, start_mark, &handle)) parser 2443 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag_uri(parser, 0, NULL, start_mark, &suffix)) parser 2450 ext/psych/yaml/scanner.c if (!yaml_parser_scan_tag_uri(parser, 0, handle, start_mark, &suffix)) parser 2476 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2478 ext/psych/yaml/scanner.c if (!IS_BLANKZ(parser->buffer)) { parser 2479 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a tag", parser 2484 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 2508 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; parser 2512 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2514 ext/psych/yaml/scanner.c if (!CHECK(parser->buffer, '!')) { parser 2515 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, directive ? parser 2523 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 2527 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2529 ext/psych/yaml/scanner.c while (IS_ALPHA(parser->buffer)) parser 2531 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 2532 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2537 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '!')) parser 2539 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 2550 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while parsing a tag directive", parser 2561 ext/psych/yaml/scanner.c STRING_DEL(parser, string); parser 2576 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; parser 2582 ext/psych/yaml/scanner.c parser->error = YAML_MEMORY_ERROR; parser 2600 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2610 ext/psych/yaml/scanner.c while (IS_ALPHA(parser->buffer) || CHECK(parser->buffer, ';') parser 2611 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '/') || CHECK(parser->buffer, '?') parser 2612 ext/psych/yaml/scanner.c || CHECK(parser->buffer, ':') || CHECK(parser->buffer, '@') parser 2613 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '&') || CHECK(parser->buffer, '=') parser 2614 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '+') || CHECK(parser->buffer, '$') parser 2615 ext/psych/yaml/scanner.c || CHECK(parser->buffer, ',') || CHECK(parser->buffer, '.') parser 2616 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '!') || CHECK(parser->buffer, '~') parser 2617 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '*') || CHECK(parser->buffer, '\'') parser 2618 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '(') || CHECK(parser->buffer, ')') parser 2619 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '[') || CHECK(parser->buffer, ']') parser 2620 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '%')) parser 2624 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '%')) { parser 2625 ext/psych/yaml/scanner.c if (!STRING_EXTEND(parser, string)) parser 2628 ext/psych/yaml/scanner.c if (!yaml_parser_scan_uri_escapes(parser, parser 2632 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 2636 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2642 ext/psych/yaml/scanner.c if (!STRING_EXTEND(parser, string)) parser 2645 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, directive ? parser 2656 ext/psych/yaml/scanner.c STRING_DEL(parser, string); parser 2678 ext/psych/yaml/scanner.c if (!CACHE(parser, 3)) return 0; parser 2680 ext/psych/yaml/scanner.c if (!(CHECK(parser->buffer, '%') parser 2681 ext/psych/yaml/scanner.c && IS_HEX_AT(parser->buffer, 1) parser 2682 ext/psych/yaml/scanner.c && IS_HEX_AT(parser->buffer, 2))) { parser 2683 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, directive ? parser 2690 ext/psych/yaml/scanner.c octet = (AS_HEX_AT(parser->buffer, 1) << 4) + AS_HEX_AT(parser->buffer, 2); parser 2701 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, directive ? parser 2711 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, directive ? parser 2720 ext/psych/yaml/scanner.c SKIP(parser); parser 2721 ext/psych/yaml/scanner.c SKIP(parser); parser 2722 ext/psych/yaml/scanner.c SKIP(parser); parser 2748 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; parser 2749 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, leading_break, INITIAL_STRING_SIZE)) goto error; parser 2750 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, trailing_breaks, INITIAL_STRING_SIZE)) goto error; parser 2754 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 2756 ext/psych/yaml/scanner.c SKIP(parser); parser 2760 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2764 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '+') || CHECK(parser->buffer, '-')) parser 2768 ext/psych/yaml/scanner.c chomping = CHECK(parser->buffer, '+') ? +1 : -1; parser 2770 ext/psych/yaml/scanner.c SKIP(parser); parser 2774 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2776 ext/psych/yaml/scanner.c if (IS_DIGIT(parser->buffer)) parser 2780 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '0')) { parser 2781 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a block scalar", parser 2788 ext/psych/yaml/scanner.c increment = AS_DIGIT(parser->buffer); parser 2790 ext/psych/yaml/scanner.c SKIP(parser); parser 2796 ext/psych/yaml/scanner.c else if (IS_DIGIT(parser->buffer)) parser 2798 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '0')) { parser 2799 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a block scalar", parser 2804 ext/psych/yaml/scanner.c increment = AS_DIGIT(parser->buffer); parser 2806 ext/psych/yaml/scanner.c SKIP(parser); parser 2808 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2810 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '+') || CHECK(parser->buffer, '-')) { parser 2811 ext/psych/yaml/scanner.c chomping = CHECK(parser->buffer, '+') ? +1 : -1; parser 2813 ext/psych/yaml/scanner.c SKIP(parser); parser 2819 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2821 ext/psych/yaml/scanner.c while (IS_BLANK(parser->buffer)) { parser 2822 ext/psych/yaml/scanner.c SKIP(parser); parser 2823 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2826 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '#')) { parser 2827 ext/psych/yaml/scanner.c while (!IS_BREAKZ(parser->buffer)) { parser 2828 ext/psych/yaml/scanner.c SKIP(parser); parser 2829 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2835 ext/psych/yaml/scanner.c if (!IS_BREAKZ(parser->buffer)) { parser 2836 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a block scalar", parser 2843 ext/psych/yaml/scanner.c if (IS_BREAK(parser->buffer)) { parser 2844 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 2845 ext/psych/yaml/scanner.c SKIP_LINE(parser); parser 2848 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 2853 ext/psych/yaml/scanner.c indent = parser->indent >= 0 ? parser->indent+increment : increment; parser 2858 ext/psych/yaml/scanner.c if (!yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, parser 2863 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2865 ext/psych/yaml/scanner.c while ((int)parser->mark.column == indent && !IS_Z(parser->buffer)) parser 2873 ext/psych/yaml/scanner.c trailing_blank = IS_BLANK(parser->buffer); parser 2883 ext/psych/yaml/scanner.c if (!STRING_EXTEND(parser, string)) goto error; parser 2887 ext/psych/yaml/scanner.c CLEAR(parser, leading_break); parser 2890 ext/psych/yaml/scanner.c if (!JOIN(parser, string, leading_break)) goto error; parser 2891 ext/psych/yaml/scanner.c CLEAR(parser, leading_break); parser 2896 ext/psych/yaml/scanner.c if (!JOIN(parser, string, trailing_breaks)) goto error; parser 2897 ext/psych/yaml/scanner.c CLEAR(parser, trailing_breaks); parser 2901 ext/psych/yaml/scanner.c leading_blank = IS_BLANK(parser->buffer); parser 2905 ext/psych/yaml/scanner.c while (!IS_BREAKZ(parser->buffer)) { parser 2906 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 2907 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 2912 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 2914 ext/psych/yaml/scanner.c if (!READ_LINE(parser, leading_break)) goto error; parser 2918 ext/psych/yaml/scanner.c if (!yaml_parser_scan_block_scalar_breaks(parser, parser 2925 ext/psych/yaml/scanner.c if (!JOIN(parser, string, leading_break)) goto error; parser 2928 ext/psych/yaml/scanner.c if (!JOIN(parser, string, trailing_breaks)) goto error; parser 2937 ext/psych/yaml/scanner.c STRING_DEL(parser, leading_break); parser 2938 ext/psych/yaml/scanner.c STRING_DEL(parser, trailing_breaks); parser 2943 ext/psych/yaml/scanner.c STRING_DEL(parser, string); parser 2944 ext/psych/yaml/scanner.c STRING_DEL(parser, leading_break); parser 2945 ext/psych/yaml/scanner.c STRING_DEL(parser, trailing_breaks); parser 2962 ext/psych/yaml/scanner.c *end_mark = parser->mark; parser 2970 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 2972 ext/psych/yaml/scanner.c while ((!*indent || (int)parser->mark.column < *indent) parser 2973 ext/psych/yaml/scanner.c && IS_SPACE(parser->buffer)) { parser 2974 ext/psych/yaml/scanner.c SKIP(parser); parser 2975 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) return 0; parser 2978 ext/psych/yaml/scanner.c if ((int)parser->mark.column > max_indent) parser 2979 ext/psych/yaml/scanner.c max_indent = (int)parser->mark.column; parser 2983 ext/psych/yaml/scanner.c if ((!*indent || (int)parser->mark.column < *indent) parser 2984 ext/psych/yaml/scanner.c && IS_TAB(parser->buffer)) { parser 2985 ext/psych/yaml/scanner.c return yaml_parser_set_scanner_error(parser, "while scanning a block scalar", parser 2991 ext/psych/yaml/scanner.c if (!IS_BREAK(parser->buffer)) break; parser 2995 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) return 0; parser 2996 ext/psych/yaml/scanner.c if (!READ_LINE(parser, *breaks)) return 0; parser 2997 ext/psych/yaml/scanner.c *end_mark = parser->mark; parser 3004 ext/psych/yaml/scanner.c if (*indent < parser->indent + 1) parser 3005 ext/psych/yaml/scanner.c *indent = parser->indent + 1; parser 3029 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; parser 3030 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, leading_break, INITIAL_STRING_SIZE)) goto error; parser 3031 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, trailing_breaks, INITIAL_STRING_SIZE)) goto error; parser 3032 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, whitespaces, INITIAL_STRING_SIZE)) goto error; parser 3036 ext/psych/yaml/scanner.c start_mark = parser->mark; parser 3038 ext/psych/yaml/scanner.c SKIP(parser); parser 3046 ext/psych/yaml/scanner.c if (!CACHE(parser, 4)) goto error; parser 3048 ext/psych/yaml/scanner.c if (parser->mark.column == 0 && parser 3049 ext/psych/yaml/scanner.c ((CHECK_AT(parser->buffer, '-', 0) && parser 3050 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '-', 1) && parser 3051 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '-', 2)) || parser 3052 ext/psych/yaml/scanner.c (CHECK_AT(parser->buffer, '.', 0) && parser 3053 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '.', 1) && parser 3054 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '.', 2))) && parser 3055 ext/psych/yaml/scanner.c IS_BLANKZ_AT(parser->buffer, 3)) parser 3057 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", parser 3064 ext/psych/yaml/scanner.c if (IS_Z(parser->buffer)) { parser 3065 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", parser 3072 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 3076 ext/psych/yaml/scanner.c while (!IS_BLANKZ(parser->buffer)) parser 3080 ext/psych/yaml/scanner.c if (single && CHECK_AT(parser->buffer, '\'', 0) parser 3081 ext/psych/yaml/scanner.c && CHECK_AT(parser->buffer, '\'', 1)) parser 3083 ext/psych/yaml/scanner.c if (!STRING_EXTEND(parser, string)) goto error; parser 3085 ext/psych/yaml/scanner.c SKIP(parser); parser 3086 ext/psych/yaml/scanner.c SKIP(parser); parser 3091 ext/psych/yaml/scanner.c else if (CHECK(parser->buffer, single ? '\'' : '"')) parser 3098 ext/psych/yaml/scanner.c else if (!single && CHECK(parser->buffer, '\\') parser 3099 ext/psych/yaml/scanner.c && IS_BREAK_AT(parser->buffer, 1)) parser 3101 ext/psych/yaml/scanner.c if (!CACHE(parser, 3)) goto error; parser 3102 ext/psych/yaml/scanner.c SKIP(parser); parser 3103 ext/psych/yaml/scanner.c SKIP_LINE(parser); parser 3110 ext/psych/yaml/scanner.c else if (!single && CHECK(parser->buffer, '\\')) parser 3114 ext/psych/yaml/scanner.c if (!STRING_EXTEND(parser, string)) goto error; parser 3118 ext/psych/yaml/scanner.c switch (parser->buffer.pointer[1]) parser 3208 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", parser 3213 ext/psych/yaml/scanner.c SKIP(parser); parser 3214 ext/psych/yaml/scanner.c SKIP(parser); parser 3225 ext/psych/yaml/scanner.c if (!CACHE(parser, code_length)) goto error; parser 3228 ext/psych/yaml/scanner.c if (!IS_HEX_AT(parser->buffer, k)) { parser 3229 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", parser 3233 ext/psych/yaml/scanner.c value = (value << 4) + AS_HEX_AT(parser->buffer, k); parser 3239 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", parser 3266 ext/psych/yaml/scanner.c SKIP(parser); parser 3275 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 3278 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 3283 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, single ? '\'' : '"')) parser 3288 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 3290 ext/psych/yaml/scanner.c while (IS_BLANK(parser->buffer) || IS_BREAK(parser->buffer)) parser 3292 ext/psych/yaml/scanner.c if (IS_BLANK(parser->buffer)) parser 3297 ext/psych/yaml/scanner.c if (!READ(parser, whitespaces)) goto error; parser 3300 ext/psych/yaml/scanner.c SKIP(parser); parser 3305 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 3311 ext/psych/yaml/scanner.c CLEAR(parser, whitespaces); parser 3312 ext/psych/yaml/scanner.c if (!READ_LINE(parser, leading_break)) goto error; parser 3317 ext/psych/yaml/scanner.c if (!READ_LINE(parser, trailing_breaks)) goto error; parser 3320 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 3331 ext/psych/yaml/scanner.c if (!STRING_EXTEND(parser, string)) goto error; parser 3335 ext/psych/yaml/scanner.c if (!JOIN(parser, string, trailing_breaks)) goto error; parser 3336 ext/psych/yaml/scanner.c CLEAR(parser, trailing_breaks); parser 3338 ext/psych/yaml/scanner.c CLEAR(parser, leading_break); parser 3341 ext/psych/yaml/scanner.c if (!JOIN(parser, string, leading_break)) goto error; parser 3342 ext/psych/yaml/scanner.c if (!JOIN(parser, string, trailing_breaks)) goto error; parser 3343 ext/psych/yaml/scanner.c CLEAR(parser, leading_break); parser 3344 ext/psych/yaml/scanner.c CLEAR(parser, trailing_breaks); parser 3349 ext/psych/yaml/scanner.c if (!JOIN(parser, string, whitespaces)) goto error; parser 3350 ext/psych/yaml/scanner.c CLEAR(parser, whitespaces); parser 3356 ext/psych/yaml/scanner.c SKIP(parser); parser 3358 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 3366 ext/psych/yaml/scanner.c STRING_DEL(parser, leading_break); parser 3367 ext/psych/yaml/scanner.c STRING_DEL(parser, trailing_breaks); parser 3368 ext/psych/yaml/scanner.c STRING_DEL(parser, whitespaces); parser 3373 ext/psych/yaml/scanner.c STRING_DEL(parser, string); parser 3374 ext/psych/yaml/scanner.c STRING_DEL(parser, leading_break); parser 3375 ext/psych/yaml/scanner.c STRING_DEL(parser, trailing_breaks); parser 3376 ext/psych/yaml/scanner.c STRING_DEL(parser, whitespaces); parser 3395 ext/psych/yaml/scanner.c int indent = parser->indent+1; parser 3397 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, string, INITIAL_STRING_SIZE)) goto error; parser 3398 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, leading_break, INITIAL_STRING_SIZE)) goto error; parser 3399 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, trailing_breaks, INITIAL_STRING_SIZE)) goto error; parser 3400 ext/psych/yaml/scanner.c if (!STRING_INIT(parser, whitespaces, INITIAL_STRING_SIZE)) goto error; parser 3402 ext/psych/yaml/scanner.c start_mark = end_mark = parser->mark; parser 3410 ext/psych/yaml/scanner.c if (!CACHE(parser, 4)) goto error; parser 3412 ext/psych/yaml/scanner.c if (parser->mark.column == 0 && parser 3413 ext/psych/yaml/scanner.c ((CHECK_AT(parser->buffer, '-', 0) && parser 3414 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '-', 1) && parser 3415 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '-', 2)) || parser 3416 ext/psych/yaml/scanner.c (CHECK_AT(parser->buffer, '.', 0) && parser 3417 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '.', 1) && parser 3418 ext/psych/yaml/scanner.c CHECK_AT(parser->buffer, '.', 2))) && parser 3419 ext/psych/yaml/scanner.c IS_BLANKZ_AT(parser->buffer, 3)) break; parser 3423 ext/psych/yaml/scanner.c if (CHECK(parser->buffer, '#')) parser 3428 ext/psych/yaml/scanner.c while (!IS_BLANKZ(parser->buffer)) parser 3432 ext/psych/yaml/scanner.c if (parser->flow_level parser 3433 ext/psych/yaml/scanner.c && CHECK(parser->buffer, ':') parser 3434 ext/psych/yaml/scanner.c && !IS_BLANKZ_AT(parser->buffer, 1)) { parser 3435 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", parser 3442 ext/psych/yaml/scanner.c if ((CHECK(parser->buffer, ':') && IS_BLANKZ_AT(parser->buffer, 1)) parser 3443 ext/psych/yaml/scanner.c || (parser->flow_level && parser 3444 ext/psych/yaml/scanner.c (CHECK(parser->buffer, ',') || CHECK(parser->buffer, ':') parser 3445 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '?') || CHECK(parser->buffer, '[') parser 3446 ext/psych/yaml/scanner.c || CHECK(parser->buffer, ']') || CHECK(parser->buffer, '{') parser 3447 ext/psych/yaml/scanner.c || CHECK(parser->buffer, '}')))) parser 3460 ext/psych/yaml/scanner.c if (!STRING_EXTEND(parser, string)) goto error; parser 3464 ext/psych/yaml/scanner.c if (!JOIN(parser, string, trailing_breaks)) goto error; parser 3465 ext/psych/yaml/scanner.c CLEAR(parser, trailing_breaks); parser 3467 ext/psych/yaml/scanner.c CLEAR(parser, leading_break); parser 3470 ext/psych/yaml/scanner.c if (!JOIN(parser, string, leading_break)) goto error; parser 3471 ext/psych/yaml/scanner.c if (!JOIN(parser, string, trailing_breaks)) goto error; parser 3472 ext/psych/yaml/scanner.c CLEAR(parser, leading_break); parser 3473 ext/psych/yaml/scanner.c CLEAR(parser, trailing_breaks); parser 3480 ext/psych/yaml/scanner.c if (!JOIN(parser, string, whitespaces)) goto error; parser 3481 ext/psych/yaml/scanner.c CLEAR(parser, whitespaces); parser 3487 ext/psych/yaml/scanner.c if (!READ(parser, string)) goto error; parser 3489 ext/psych/yaml/scanner.c end_mark = parser->mark; parser 3491 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 3496 ext/psych/yaml/scanner.c if (!(IS_BLANK(parser->buffer) || IS_BREAK(parser->buffer))) parser 3501 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 3503 ext/psych/yaml/scanner.c while (IS_BLANK(parser->buffer) || IS_BREAK(parser->buffer)) parser 3505 ext/psych/yaml/scanner.c if (IS_BLANK(parser->buffer)) parser 3509 ext/psych/yaml/scanner.c if (leading_blanks && (int)parser->mark.column < indent parser 3510 ext/psych/yaml/scanner.c && IS_TAB(parser->buffer)) { parser 3511 ext/psych/yaml/scanner.c yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", parser 3519 ext/psych/yaml/scanner.c if (!READ(parser, whitespaces)) goto error; parser 3522 ext/psych/yaml/scanner.c SKIP(parser); parser 3527 ext/psych/yaml/scanner.c if (!CACHE(parser, 2)) goto error; parser 3533 ext/psych/yaml/scanner.c CLEAR(parser, whitespaces); parser 3534 ext/psych/yaml/scanner.c if (!READ_LINE(parser, leading_break)) goto error; parser 3539 ext/psych/yaml/scanner.c if (!READ_LINE(parser, trailing_breaks)) goto error; parser 3542 ext/psych/yaml/scanner.c if (!CACHE(parser, 1)) goto error; parser 3547 ext/psych/yaml/scanner.c if (!parser->flow_level && (int)parser->mark.column < indent) parser 3559 ext/psych/yaml/scanner.c parser->simple_key_allowed = 1; parser 3562 ext/psych/yaml/scanner.c STRING_DEL(parser, leading_break); parser 3563 ext/psych/yaml/scanner.c STRING_DEL(parser, trailing_breaks); parser 3564 ext/psych/yaml/scanner.c STRING_DEL(parser, whitespaces); parser 3569 ext/psych/yaml/scanner.c STRING_DEL(parser, string); parser 3570 ext/psych/yaml/scanner.c STRING_DEL(parser, leading_break); parser 3571 ext/psych/yaml/scanner.c STRING_DEL(parser, trailing_breaks); parser 3572 ext/psych/yaml/scanner.c STRING_DEL(parser, whitespaces); parser 1317 ext/psych/yaml/yaml.h yaml_parser_initialize(yaml_parser_t *parser); parser 1326 ext/psych/yaml/yaml.h yaml_parser_delete(yaml_parser_t *parser); parser 1341 ext/psych/yaml/yaml.h yaml_parser_set_input_string(yaml_parser_t *parser, parser 1355 ext/psych/yaml/yaml.h yaml_parser_set_input_file(yaml_parser_t *parser, FILE *file); parser 1367 ext/psych/yaml/yaml.h yaml_parser_set_input(yaml_parser_t *parser, parser 1378 ext/psych/yaml/yaml.h yaml_parser_set_encoding(yaml_parser_t *parser, yaml_encoding_t encoding); parser 1402 ext/psych/yaml/yaml.h yaml_parser_scan(yaml_parser_t *parser, yaml_token_t *token); parser 1426 ext/psych/yaml/yaml.h yaml_parser_parse(yaml_parser_t *parser, yaml_event_t *event); parser 1451 ext/psych/yaml/yaml.h yaml_parser_load(yaml_parser_t *parser, yaml_document_t *document); parser 136 ext/racc/cparse/cparse.c VALUE parser; /* parser object */ parser 247 ext/racc/cparse/cparse.c vparams = initialize_params(vparams, parser, arg, Qnil, Qnil); parser 265 ext/racc/cparse/cparse.c vparams = initialize_params(vparams, parser, arg, lexer, lexmid); parser 343 ext/racc/cparse/cparse.c v->parser = parser; parser 348 ext/racc/cparse/cparse.c v->debug = RTEST(rb_ivar_get(parser, id_yydebug)); parser 381 ext/racc/cparse/cparse.c rb_ivar_set(parser, id_errstatus, LONG2NUM(v->errstatus)); parser 388 ext/racc/cparse/cparse.c rb_iv_set(parser, "@vstack", v->vstack); parser 390 ext/racc/cparse/cparse.c rb_iv_set(parser, "@tstack", v->tstack); parser 393 ext/racc/cparse/cparse.c rb_iv_set(parser, "@tstack", Qnil); parser 405 ext/racc/cparse/cparse.c rb_gc_mark(v->parser); parser 510 ext/racc/cparse/cparse.c tmp = rb_funcall(v->parser, id_nexttoken, 0); parser 520 ext/racc/cparse/cparse.c rb_funcall(v->parser, id_d_read_token, parser 557 ext/racc/cparse/cparse.c rb_ivar_set(v->parser, id_errstatus, LONG2NUM(v->errstatus)); parser 580 ext/racc/cparse/cparse.c rb_funcall(v->parser, id_d_next_state, parser 588 ext/racc/cparse/cparse.c if (v->debug) rb_funcall(v->parser, id_d_accept, 0); parser 598 ext/racc/cparse/cparse.c rb_funcall(v->parser, id_onerror, parser 611 ext/racc/cparse/cparse.c rb_ivar_set(v->parser, id_errstatus, LONG2NUM(v->errstatus)); parser 659 ext/racc/cparse/cparse.c rb_funcall(v->parser, id_d_e_pop, parser 689 ext/racc/cparse/cparse.c rb_funcall(v->parser, id_d_shift, parser 702 ext/racc/cparse/cparse.c v->errstatus = num_to_long(rb_ivar_get(v->parser, id_errstatus)); parser 748 ext/racc/cparse/cparse.c tmp = rb_funcall(v->parser, mid, parser 752 ext/racc/cparse/cparse.c tmp = rb_funcall(v->parser, mid, parser 761 ext/racc/cparse/cparse.c rb_funcall(v->parser, id_d_reduce, parser 97 ext/ripper/ripper.c #define YYMALLOC(size) rb_parser_malloc(parser, (size)) parser 98 ext/ripper/ripper.c #define YYREALLOC(ptr, size) rb_parser_realloc(parser, (ptr), (size)) parser 99 ext/ripper/ripper.c #define YYCALLOC(nelem, size) rb_parser_calloc(parser, (nelem), (size)) parser 100 ext/ripper/ripper.c #define YYFREE(ptr) rb_parser_free(parser, (ptr)) parser 104 ext/ripper/ripper.c rb_parser_printf(parser, "%d.%d-%d.%d", \ parser 401 ext/ripper/ripper.c #define yyerror(msg) parser_yyerror(parser, (msg)) parser 403 ext/ripper/ripper.c #define lex_strterm (parser->lex.strterm) parser 404 ext/ripper/ripper.c #define lex_state (parser->lex.state) parser 405 ext/ripper/ripper.c #define cond_stack (parser->cond_stack) parser 406 ext/ripper/ripper.c #define cmdarg_stack (parser->cmdarg_stack) parser 407 ext/ripper/ripper.c #define paren_nest (parser->lex.paren_nest) parser 408 ext/ripper/ripper.c #define lpar_beg (parser->lex.lpar_beg) parser 409 ext/ripper/ripper.c #define brace_nest (parser->lex.brace_nest) parser 410 ext/ripper/ripper.c #define in_single (parser->in_single) parser 411 ext/ripper/ripper.c #define in_def (parser->in_def) parser 412 ext/ripper/ripper.c #define in_main (parser->in_main) parser 413 ext/ripper/ripper.c #define in_defined (parser->in_defined) parser 414 ext/ripper/ripper.c #define tokenbuf (parser->tokenbuf) parser 415 ext/ripper/ripper.c #define tokidx (parser->tokidx) parser 416 ext/ripper/ripper.c #define toksiz (parser->toksiz) parser 417 ext/ripper/ripper.c #define tokline (parser->tokline) parser 418 ext/ripper/ripper.c #define lex_input (parser->lex.input) parser 419 ext/ripper/ripper.c #define lex_lastline (parser->lex.lastline) parser 420 ext/ripper/ripper.c #define lex_nextline (parser->lex.nextline) parser 421 ext/ripper/ripper.c #define lex_pbeg (parser->lex.pbeg) parser 422 ext/ripper/ripper.c #define lex_p (parser->lex.pcur) parser 423 ext/ripper/ripper.c #define lex_pend (parser->lex.pend) parser 424 ext/ripper/ripper.c #define heredoc_end (parser->heredoc_end) parser 425 ext/ripper/ripper.c #define heredoc_indent (parser->heredoc_indent) parser 426 ext/ripper/ripper.c #define heredoc_line_indent (parser->heredoc_line_indent) parser 427 ext/ripper/ripper.c #define command_start (parser->command_start) parser 428 ext/ripper/ripper.c #define deferred_nodes (parser->deferred_nodes) parser 429 ext/ripper/ripper.c #define lex_gets_ptr (parser->lex.gets_ptr) parser 430 ext/ripper/ripper.c #define lex_gets (parser->lex.gets) parser 431 ext/ripper/ripper.c #define lvtbl (parser->lvtbl) parser 432 ext/ripper/ripper.c #define ruby__end__seen (parser->ruby__end__seen) parser 433 ext/ripper/ripper.c #define ruby_sourceline (parser->ruby_sourceline) parser 434 ext/ripper/ripper.c #define ruby_sourcefile (parser->ruby_sourcefile) parser 435 ext/ripper/ripper.c #define ruby_sourcefile_string (parser->ruby_sourcefile_string) parser 436 ext/ripper/ripper.c #define current_enc (parser->enc) parser 437 ext/ripper/ripper.c #define current_arg (parser->cur_arg) parser 438 ext/ripper/ripper.c #define yydebug (parser->yydebug) parser 442 ext/ripper/ripper.c #define compile_for_eval (parser->base_block != 0 && !in_main) parser 443 ext/ripper/ripper.c #define ruby_eval_tree (parser->eval_tree) parser 444 ext/ripper/ripper.c #define ruby_eval_tree_begin (parser->eval_tree_begin) parser 445 ext/ripper/ripper.c #define ruby_debug_lines (parser->debug_lines) parser 446 ext/ripper/ripper.c #define ruby_coverage (parser->coverage) parser 459 ext/ripper/ripper.c #define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, (type), (a1), (a2), (a3)) parser 462 ext/ripper/ripper.c #define cond(node) cond_gen(parser, (node)) parser 464 ext/ripper/ripper.c #define new_if(cc,left,right) new_if_gen(parser, (cc), (left), (right)) parser 465 ext/ripper/ripper.c #define new_unless(cc,left,right) new_if_gen(parser, (cc), (right), (left)) parser 467 ext/ripper/ripper.c #define logop(type,node1,node2) logop_gen(parser, (type), (node1), (node2)) parser 476 ext/ripper/ripper.c #define value_expr(node) value_expr_gen(parser, (node) = remove_begin(node)) parser 477 ext/ripper/ripper.c #define void_expr0(node) void_expr_gen(parser, (node)) parser 480 ext/ripper/ripper.c #define void_stmts(node) void_stmts_gen(parser, (node)) parser 482 ext/ripper/ripper.c #define reduce_nodes(n) reduce_nodes_gen(parser,(n)) parser 484 ext/ripper/ripper.c #define block_dup_check(n1,n2) block_dup_check_gen(parser,(n1),(n2)) parser 487 ext/ripper/ripper.c #define block_append(h,t) block_append_gen(parser,(h),(t)) parser 489 ext/ripper/ripper.c #define list_append(l,i) list_append_gen(parser,(l),(i)) parser 492 ext/ripper/ripper.c #define arg_append(h,t) arg_append_gen(parser,(h),(t)) parser 494 ext/ripper/ripper.c #define arg_concat(h,t) arg_concat_gen(parser,(h),(t)) parser 496 ext/ripper/ripper.c #define literal_concat(h,t) literal_concat_gen(parser,(h),(t)) parser 499 ext/ripper/ripper.c #define new_evstr(n) new_evstr_gen(parser,(n)) parser 501 ext/ripper/ripper.c #define evstr2dstr(n) evstr2dstr_gen(parser,(n)) parser 505 ext/ripper/ripper.c #define call_bin_op(recv,id,arg1) call_bin_op_gen(parser, (recv),(id),(arg1)) parser 507 ext/ripper/ripper.c #define call_uni_op(recv,id) call_uni_op_gen(parser, (recv),(id)) parser 510 ext/ripper/ripper.c #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 512 ext/ripper/ripper.c #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 517 ext/ripper/ripper.c #define ret_args(node) ret_args_gen(parser, (node)) parser 520 ext/ripper/ripper.c #define new_yield(node) new_yield_gen(parser, (node)) parser 522 ext/ripper/ripper.c #define dsym_node(node) dsym_node_gen(parser, (node)) parser 525 ext/ripper/ripper.c #define gettable(id) gettable_gen(parser,(id)) parser 527 ext/ripper/ripper.c #define assignable(id,node) assignable_gen(parser, (id), (node)) parser 530 ext/ripper/ripper.c #define aryset(node1,node2) aryset_gen(parser, (node1), (node2)) parser 532 ext/ripper/ripper.c #define attrset(node,q,id) attrset_gen(parser, (node), (q), (id)) parser 535 ext/ripper/ripper.c #define rb_backref_error(n) rb_backref_error_gen(parser,(n)) parser 537 ext/ripper/ripper.c #define node_assign(node1, node2) node_assign_gen(parser, (node1), (node2)) parser 541 ext/ripper/ripper.c #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 543 ext/ripper/ripper.c #define new_const_op_assign(lhs, op, rhs) new_const_op_assign_gen(parser, (lhs), (op), (rhs)) parser 548 ext/ripper/ripper.c #define new_hash(hash) new_hash_gen(parser, (hash)) parser 553 ext/ripper/ripper.c #define match_op(node1,node2) match_op_gen(parser, (node1), (node2)) parser 556 ext/ripper/ripper.c #define local_tbl() local_tbl_gen(parser) parser 561 ext/ripper/ripper.c #define reg_compile(str,options) reg_compile_gen(parser, (str), (options)) parser 563 ext/ripper/ripper.c #define reg_fragment_setenc(str,options) reg_fragment_setenc_gen(parser, (str), (options)) parser 565 ext/ripper/ripper.c #define reg_fragment_check(str,options) reg_fragment_check_gen(parser, (str), (options)) parser 567 ext/ripper/ripper.c #define reg_named_capture_assign(regexp) reg_named_capture_assign_gen(parser,(regexp)) parser 570 ext/ripper/ripper.c # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 598 ext/ripper/ripper.c #define assignable(lhs,node) assignable_gen(parser, (lhs)) parser 600 ext/ripper/ripper.c #define id_is_var(id) id_is_var_gen(parser, (id)) parser 606 ext/ripper/ripper.c #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 610 ext/ripper/ripper.c #define new_op_assign(lhs, op, rhs) new_op_assign_gen(parser, (lhs), (op), (rhs)) parser 615 ext/ripper/ripper.c #define formal_argument(id) formal_argument_gen(parser, (id)) parser 617 ext/ripper/ripper.c #define shadowing_lvar(name) shadowing_lvar_gen(parser, (name)) parser 619 ext/ripper/ripper.c #define new_bv(id) new_bv_gen(parser, (id)) parser 622 ext/ripper/ripper.c #define local_push(top) local_push_gen(parser,(top)) parser 624 ext/ripper/ripper.c #define local_pop() local_pop_gen(parser) parser 626 ext/ripper/ripper.c #define local_var(id) local_var_gen(parser, (id)) parser 628 ext/ripper/ripper.c #define arg_var(id) arg_var_gen(parser, (id)) parser 630 ext/ripper/ripper.c #define local_id(id) local_id_gen(parser, (id)) parser 632 ext/ripper/ripper.c #define internal_id() internal_id_gen(parser) parser 635 ext/ripper/ripper.c #define dyna_push() dyna_push_gen(parser) parser 637 ext/ripper/ripper.c #define dyna_pop(node) dyna_pop_gen(parser, (node)) parser 639 ext/ripper/ripper.c #define dyna_in_block() dyna_in_block_gen(parser) parser 642 ext/ripper/ripper.c #define dvar_defined(id) dvar_defined_gen(parser, (id), 0) parser 643 ext/ripper/ripper.c #define dvar_defined_get(id) dvar_defined_gen(parser, (id), 1) parser 645 ext/ripper/ripper.c #define dvar_curr(id) dvar_curr_gen(parser, (id)) parser 648 ext/ripper/ripper.c #define lvar_defined(id) lvar_defined_gen(parser, (id)) parser 688 ext/ripper/ripper.c #define ripper_error() ripper_error_gen(parser) parser 690 ext/ripper/ripper.c #define dispatch0(n) ripper_dispatch0(parser, TOKEN_PASTE(ripper_id_, n)) parser 691 ext/ripper/ripper.c #define dispatch1(n,a) ripper_dispatch1(parser, TOKEN_PASTE(ripper_id_, n), (a)) parser 692 ext/ripper/ripper.c #define dispatch2(n,a,b) ripper_dispatch2(parser, TOKEN_PASTE(ripper_id_, n), (a), (b)) parser 693 ext/ripper/ripper.c #define dispatch3(n,a,b,c) ripper_dispatch3(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c)) parser 694 ext/ripper/ripper.c #define dispatch4(n,a,b,c,d) ripper_dispatch4(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d)) parser 695 ext/ripper/ripper.c #define dispatch5(n,a,b,c,d,e) ripper_dispatch5(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e)) parser 696 ext/ripper/ripper.c #define dispatch7(n,a,b,c,d,e,f,g) ripper_dispatch7(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e), (f), (g)) parser 744 ext/ripper/ripper.c #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 751 ext/ripper/ripper.c #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 756 ext/ripper/ripper.c # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 795 ext/ripper/ripper.c # define WARN_ARGS(fmt,n) parser->value, id_warn, n, rb_usascii_str_new_lit(fmt) parser 798 ext/ripper/ripper.c # define WARNING_ARGS(fmt,n) parser->value, id_warning, n, rb_usascii_str_new_lit(fmt) parser 803 ext/ripper/ripper.c # define PARSER_ARG parser, parser 816 ext/ripper/ripper.c # define PARSER_ARG parser, parser 830 ext/ripper/ripper.c #define token_info_push(token) token_info_push_gen(parser, (token), rb_strlen_lit(token)) parser 831 ext/ripper/ripper.c #define token_info_pop(token) token_info_pop_gen(parser, (token), rb_strlen_lit(token)) parser 4284 ext/ripper/ripper.c parser_yyerror (parser, YY_("syntax error: cannot back up")); \ parser 4319 ext/ripper/ripper.c YYFPRINTF (parser, "%s ", Title); \ parser 4321 ext/ripper/ripper.c Type, Value, parser); \ parser 4322 ext/ripper/ripper.c YYFPRINTF (parser, "\n"); \ parser 4336 ext/ripper/ripper.c YYUSE (parser); parser 4354 ext/ripper/ripper.c YYFPRINTF (parser, "%s %s (", parser 4357 ext/ripper/ripper.c yy_symbol_value_print (yyoutput, yytype, yyvaluep, parser); parser 4358 ext/ripper/ripper.c YYFPRINTF (parser, ")"); parser 4369 ext/ripper/ripper.c YYFPRINTF (parser, "Stack now"); parser 4373 ext/ripper/ripper.c YYFPRINTF (parser, " %d", yybot); parser 4375 ext/ripper/ripper.c YYFPRINTF (parser, "\n"); parser 4381 ext/ripper/ripper.c yy_stack_print ((Bottom), (Top), parser); \ parser 4395 ext/ripper/ripper.c YYFPRINTF (parser, "Reducing stack by rule %d (line %lu):\n", parser 4400 ext/ripper/ripper.c YYFPRINTF (parser, " $%d = ", yyi + 1); parser 4404 ext/ripper/ripper.c , parser); parser 4405 ext/ripper/ripper.c YYFPRINTF (parser, "\n"); parser 4412 ext/ripper/ripper.c yy_reduce_print (yyssp, yyvsp, Rule, parser); \ parser 4675 ext/ripper/ripper.c YYUSE (parser); parser 4756 ext/ripper/ripper.c YYDPRINTF ((parser, "Starting parse\n")); parser 4829 ext/ripper/ripper.c YYDPRINTF ((parser, "Stack size increased to %lu\n", parser 4836 ext/ripper/ripper.c YYDPRINTF ((parser, "Entering state %d\n", yystate)); parser 4861 ext/ripper/ripper.c YYDPRINTF ((parser, "Reading a token: ")); parser 4862 ext/ripper/ripper.c yychar = yylex (&yylval, parser); parser 4868 ext/ripper/ripper.c YYDPRINTF ((parser, "Now at end of input.\n")); parser 4971 ext/ripper/ripper.c parser->result = dispatch1(program, (yyval.val)); parser 9218 ext/ripper/ripper.c if (!literal_concat0(parser, lit, tail)) { parser 9255 ext/ripper/ripper.c if (src && NIL_P(rb_parser_reg_compile(parser, src, options, &err))) { parser 9902 ext/ripper/ripper.c (yyval.num) = parser->in_kwarg; parser 9903 ext/ripper/ripper.c parser->in_kwarg = 1; parser 9912 ext/ripper/ripper.c parser->in_kwarg = !!(yyvsp[-2].num); parser 10786 ext/ripper/ripper.c parser_yyerror (parser, YY_("syntax error")); parser 10813 ext/ripper/ripper.c parser_yyerror (parser, yymsgp); parser 10837 ext/ripper/ripper.c yytoken, &yylval, parser); parser 10893 ext/ripper/ripper.c yystos[yystate], yyvsp, parser); parser 10930 ext/ripper/ripper.c parser_yyerror (parser, YY_("memory exhausted")); parser 10942 ext/ripper/ripper.c yytoken, &yylval, parser); parser 10951 ext/ripper/ripper.c yystos[*yyssp], yyvsp, parser); parser 10969 ext/ripper/ripper.c # define yylval (*parser->lval) parser 10978 ext/ripper/ripper.c # define nextc() parser_nextc(parser) parser 10979 ext/ripper/ripper.c # define pushback(c) parser_pushback(parser, (c)) parser 10980 ext/ripper/ripper.c # define newtok() parser_newtok(parser) parser 10981 ext/ripper/ripper.c # define tokspace(n) parser_tokspace(parser, (n)) parser 10982 ext/ripper/ripper.c # define tokadd(c) parser_tokadd(parser, (c)) parser 10983 ext/ripper/ripper.c # define tok_hex(numlen) parser_tok_hex(parser, (numlen)) parser 10984 ext/ripper/ripper.c # define read_escape(flags,e) parser_read_escape(parser, (flags), (e)) parser 10985 ext/ripper/ripper.c # define tokadd_escape(e) parser_tokadd_escape(parser, (e)) parser 10986 ext/ripper/ripper.c # define regx_options() parser_regx_options(parser) parser 10987 ext/ripper/ripper.c # define tokadd_string(f,t,p,n,e) parser_tokadd_string(parser,(f),(t),(p),(n),(e)) parser 10988 ext/ripper/ripper.c # define parse_string(n) parser_parse_string(parser,(n)) parser 10989 ext/ripper/ripper.c # define tokaddmbc(c, enc) parser_tokaddmbc(parser, (c), (enc)) parser 10990 ext/ripper/ripper.c # define here_document(n) parser_here_document(parser,(n)) parser 10991 ext/ripper/ripper.c # define heredoc_identifier() parser_heredoc_identifier(parser) parser 10992 ext/ripper/ripper.c # define heredoc_restore(n) parser_heredoc_restore(parser,(n)) parser 10993 ext/ripper/ripper.c # define whole_match_p(e,l,i) parser_whole_match_p(parser,(e),(l),(i)) parser 10994 ext/ripper/ripper.c # define number_literal_suffix(f) parser_number_literal_suffix(parser, (f)) parser 10995 ext/ripper/ripper.c # define set_number_literal(v, t, f) parser_set_number_literal(parser, (v), (t), (f)) parser 10996 ext/ripper/ripper.c # define set_integer_literal(v, f) parser_set_integer_literal(parser, (v), (f)) parser 11042 ext/ripper/ripper.c if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); parser 11043 ext/ripper/ripper.c return lex_p > parser->tokp; parser 11049 ext/ripper/ripper.c VALUE str = STR_NEW(parser->tokp, lex_p - parser->tokp); parser 11050 ext/ripper/ripper.c VALUE rval = ripper_dispatch1(parser, ripper_token2eventid(t), str); parser 11051 ext/ripper/ripper.c ripper_flush(parser); parser 11058 ext/ripper/ripper.c if (!ripper_has_scan_event(parser)) return; parser 11059 ext/ripper/ripper.c yylval_rval = ripper_scan_event_val(parser, t); parser 11061 ext/ripper/ripper.c #define dispatch_scan_event(t) ripper_dispatch_scan_event(parser, t) parser 11067 ext/ripper/ripper.c const char *saved_tokp = parser->tokp; parser 11069 ext/ripper/ripper.c ruby_sourceline = parser->delayed_line; parser 11070 ext/ripper/ripper.c parser->tokp = lex_pbeg + parser->delayed_col; parser 11071 ext/ripper/ripper.c yylval_rval = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed); parser 11072 ext/ripper/ripper.c parser->delayed = Qnil; parser 11074 ext/ripper/ripper.c parser->tokp = saved_tokp; parser 11076 ext/ripper/ripper.c #define dispatch_delayed_token(t) ripper_dispatch_delayed_token(parser, t) parser 11077 ext/ripper/ripper.c #define has_delayed_token() (!NIL_P(parser->delayed)) parser 11087 ext/ripper/ripper.c #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc)) parser 11123 ext/ripper/ripper.c if (!parser->token_info_enabled) return; parser 11127 ext/ripper/ripper.c ptinfo->column = token_info_get_column(parser, t); parser 11128 ext/ripper/ripper.c ptinfo->nonspc = token_info_has_nonspaces(parser, t); parser 11129 ext/ripper/ripper.c ptinfo->next = parser->token_info; parser 11131 ext/ripper/ripper.c parser->token_info = ptinfo; parser 11138 ext/ripper/ripper.c token_info *ptinfo = parser->token_info; parser 11142 ext/ripper/ripper.c parser->token_info = ptinfo->next; parser 11144 ext/ripper/ripper.c if (parser->token_info_enabled && parser 11146 ext/ripper/ripper.c !token_info_has_nonspaces(parser, t) && parser 11147 ext/ripper/ripper.c token_info_get_column(parser, t) != ptinfo->column) { parser 11263 ext/ripper/ripper.c struct parser_params *parser = (struct parser_params *)arg; parser 11276 ext/ripper/ripper.c if (!e_option_supplied(parser)) { parser 11282 ext/ripper/ripper.c parser_prepare(parser); parser 11290 ext/ripper/ripper.c n = yyparse((void*)parser); parser 11300 ext/ripper/ripper.c if (parser->error_p) { parser 11301 ext/ripper/ripper.c VALUE mesg = parser->error_buffer; parser 11313 ext/ripper/ripper.c VALUE opt = parser->compile_option; parser 11327 ext/ripper/ripper.c return (NODE *)rb_suppress_tracing(yycompile0, (VALUE)parser); parser 11364 ext/ripper/ripper.c VALUE line = (*lex_gets)(parser, lex_input); parser 11385 ext/ripper/ripper.c struct parser_params *parser; parser 11388 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 11394 ext/ripper/ripper.c node = yycompile(parser, fname, line); parser 11459 ext/ripper/ripper.c struct parser_params *parser; parser 11462 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 11467 ext/ripper/ripper.c node = yycompile(parser, fname, start); parser 11511 ext/ripper/ripper.c #define lex_goto_eol(parser) ((parser)->lex.pcur = (parser)->lex.pend) parser 11524 ext/ripper/ripper.c if (parser->eofp) parser 11527 ext/ripper/ripper.c if (!lex_input || NIL_P(v = lex_getline(parser))) { parser 11528 ext/ripper/ripper.c parser->eofp = 1; parser 11529 ext/ripper/ripper.c lex_goto_eol(parser); parser 11532 ext/ripper/ripper.c parser->cr_seen = FALSE; parser 11535 ext/ripper/ripper.c if (parser->tokp < lex_pend) { parser 11537 ext/ripper/ripper.c parser->delayed = rb_str_buf_new(1024); parser 11538 ext/ripper/ripper.c rb_enc_associate(parser->delayed, current_enc); parser 11539 ext/ripper/ripper.c rb_str_buf_cat(parser->delayed, parser 11540 ext/ripper/ripper.c parser->tokp, lex_pend - parser->tokp); parser 11541 ext/ripper/ripper.c parser->delayed_line = ruby_sourceline; parser 11542 ext/ripper/ripper.c parser->delayed_col = (int)(parser->tokp - lex_pbeg); parser 11545 ext/ripper/ripper.c rb_str_buf_cat(parser->delayed, parser 11546 ext/ripper/ripper.c parser->tokp, lex_pend - parser->tokp); parser 11555 ext/ripper/ripper.c parser->line_count++; parser 11558 ext/ripper/ripper.c ripper_flush(parser); parser 11570 ext/ripper/ripper.c else if (!parser->cr_seen) { parser 11571 ext/ripper/ripper.c parser->cr_seen = TRUE; parser 11584 ext/ripper/ripper.c if (parser_nextline(parser)) return -1; parser 11588 ext/ripper/ripper.c c = parser_cr(parser, c); parser 11969 ext/ripper/ripper.c #define tokadd_mbchar(c) parser_tokadd_mbchar(parser, (c)) parser 12040 ext/ripper/ripper.c parser_update_heredoc_indent(parser, c); parser 12079 ext/ripper/ripper.c parser_tokadd_utf8(parser, &enc, 1, parser 12159 ext/ripper/ripper.c ptrdiff_t len = lex_p - parser->tokp; parser 12161 ext/ripper/ripper.c rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 12164 ext/ripper/ripper.c parser->tokp = lex_p; parser 12173 ext/ripper/ripper.c #define flush_string_content(enc) ripper_flush_string_content(parser, (enc)) parser 12266 ext/ripper/ripper.c int t = parser_peek_variable_name(parser); parser 12276 ext/ripper/ripper.c if (parser->eofp) parser 12281 ext/ripper/ripper.c if (parser->eofp) parser 12351 ext/ripper/ripper.c lex_goto_eol(parser); parser 12357 ext/ripper/ripper.c ripper_flush(parser); parser 12376 ext/ripper/ripper.c ripper_flush(parser); parser 12547 ext/ripper/ripper.c str = STR_NEW(parser->tokp, lex_pend - parser->tokp); parser 12548 ext/ripper/ripper.c ripper_dispatch1(parser, ripper_token2eventid(tHEREDOC_END), str); parser 12549 ext/ripper/ripper.c lex_goto_eol(parser); parser 12550 ext/ripper/ripper.c ripper_flush(parser); parser 12553 ext/ripper/ripper.c #define dispatch_heredoc_end() ripper_dispatch_heredoc_end(parser) parser 12580 ext/ripper/ripper.c rb_str_append(parser->delayed, str); parser 12582 ext/ripper/ripper.c else if ((len = lex_p - parser->tokp) > 0) { parser 12585 ext/ripper/ripper.c rb_str_coderange_scan_restartable(parser->tokp, lex_p, enc, &cr); parser 12592 ext/ripper/ripper.c rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 12596 ext/ripper/ripper.c lex_goto_eol(parser); parser 12626 ext/ripper/ripper.c while (p + i < pend && parser_update_heredoc_indent(parser, p[i])) parser 12636 ext/ripper/ripper.c lex_goto_eol(parser); parser 12655 ext/ripper/ripper.c int t = parser_peek_variable_name(parser); parser 12663 ext/ripper/ripper.c if (parser->eofp) goto error; parser 12674 ext/ripper/ripper.c lex_goto_eol(parser); parser 12704 ext/ripper/ripper.c #define arg_ambiguous(c) (arg_ambiguous_gen(parser, (c)), 1) parser 12786 ext/ripper/ripper.c parser->enc = enc; parser 12802 ext/ripper/ripper.c if (parser->line_count != (parser->has_shebang ? 2 : 1)) return 0; parser 12816 ext/ripper/ripper.c if (!comment_at_top(parser)) { parser 12819 ext/ripper/ripper.c parser_set_encode(parser, val); parser 12844 ext/ripper/ripper.c int b = parser_get_bool(parser, name, val); parser 12845 ext/ripper/ripper.c if (b >= 0) parser->token_info_enabled = b; parser 12853 ext/ripper/ripper.c if (parser->token_seen) { parser 12858 ext/ripper/ripper.c b = parser_get_bool(parser, name, val); parser 12861 ext/ripper/ripper.c if (!parser->compile_option) parser 12862 ext/ripper/ripper.c parser->compile_option = rb_obj_hide(rb_ident_hash_new()); parser 12863 ext/ripper/ripper.c rb_hash_aset(parser->compile_option, ID2SYM(rb_intern(name)), parser 12871 ext/ripper/ripper.c int b = parser_get_bool(parser, name, val); parser 12872 ext/ripper/ripper.c if (b >= 0) parser->past_scope_enabled = b; parser 13013 ext/ripper/ripper.c n = (*p->length)(parser, vbeg, n); parser 13016 ext/ripper/ripper.c (*p->func)(parser, p->name, RSTRING_PTR(val)); parser 13067 ext/ripper/ripper.c s = rb_str_new(beg, parser_encode_length(parser, beg, str - beg)); parser 13068 ext/ripper/ripper.c parser_set_encode(parser, RSTRING_PTR(s)); parser 13078 ext/ripper/ripper.c if (peek('!')) parser->has_shebang = 1; parser 13084 ext/ripper/ripper.c parser->enc = rb_utf8_encoding(); parser 13094 ext/ripper/ripper.c parser->enc = rb_enc_get(lex_lastline); parser 13096 ext/ripper/ripper.c parser->token_info_enabled = !compile_for_eval && RTEST(ruby_verbose); parser 13351 ext/ripper/ripper.c v = parse_rational(parser, tok(), toklen(), seen_point); parser 13426 ext/ripper/ripper.c c = parser_tokadd_utf8(parser, &enc, 0, 0, 0); parser 13670 ext/ripper/ripper.c set_yylval_node(NEW_NTH_REF(parse_numvar(parser))); parser 13688 ext/ripper/ripper.c if (tokadd_ident(parser, c)) return 0; parser 13690 ext/ripper/ripper.c tokenize_ident(parser, last_state); parser 13727 ext/ripper/ripper.c if (tokadd_ident(parser, c)) return 0; parser 13729 ext/ripper/ripper.c tokenize_ident(parser, last_state); parser 13839 ext/ripper/ripper.c ident = tokenize_ident(parser, last_state); parser 13857 ext/ripper/ripper.c int token_seen = parser->token_seen; parser 13887 ext/ripper/ripper.c parser->token_seen = TRUE; parser 13918 ext/ripper/ripper.c parser->token_seen = token_seen; parser 13920 ext/ripper/ripper.c if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { parser 13921 ext/ripper/ripper.c if (comment_at_top(parser)) { parser 13922 ext/ripper/ripper.c set_file_encoding(parser, lex_p, lex_pend); parser 13930 ext/ripper/ripper.c parser->token_seen = token_seen; parser 13938 ext/ripper/ripper.c if (!c && parser->in_kwarg) { parser 13962 ext/ripper/ripper.c lex_goto_eol(parser); parser 13965 ext/ripper/ripper.c parser->tokp = lex_p; parser 14044 ext/ripper/ripper.c lex_goto_eol(parser); parser 14047 ext/ripper/ripper.c lex_goto_eol(parser); parser 14063 ext/ripper/ripper.c lex_goto_eol(parser); parser 14167 ext/ripper/ripper.c return parse_qmark(parser); parser 14243 ext/ripper/ripper.c return parse_numeric(parser, '+'); parser 14303 ext/ripper/ripper.c return parse_numeric(parser, c); parser 14476 ext/ripper/ripper.c return parse_percent(parser, space_seen, last_state); parser 14479 ext/ripper/ripper.c return parse_gvar(parser, last_state); parser 14482 ext/ripper/ripper.c return parse_atmark(parser, last_state); parser 14487 ext/ripper/ripper.c parser->eofp = 1; parser 14491 ext/ripper/ripper.c lex_goto_eol(parser); parser 14509 ext/ripper/ripper.c return parse_ident(parser, c, cmd_state); parser 14517 ext/ripper/ripper.c parser->lval = lval; parser 14519 ext/ripper/ripper.c t = parser_yylex(parser); parser 14573 ext/ripper/ripper.c #define parser_warning(node, mesg) parser_warning(parser, (node), (mesg)) parser 14580 ext/ripper/ripper.c #define parser_warn(node, mesg) parser_warn(parser, (node), (mesg)) parser 14734 ext/ripper/ripper.c if (!literal_concat0(parser, lit, tail->nd_lit)) { parser 14749 ext/ripper/ripper.c if (!literal_concat0(parser, head->nd_lit, tail->nd_lit)) parser 14765 ext/ripper/ripper.c if (!literal_concat0(parser, lit, tail->nd_lit)) parser 14907 ext/ripper/ripper.c if (!in_defined && RTEST(ruby_verbose) && past_dvar_p(parser, id)) { parser 15139 ext/ripper/ripper.c shadowing_lvar_0(parser, name); parser 15152 ext/ripper/ripper.c if (!shadowing_lvar_0(parser, name)) return; parser 15561 ext/ripper/ripper.c if (!e_option_supplied(parser)) parser_warn(node, str); parser 15567 ext/ripper/ripper.c if (!e_option_supplied(parser)) parser_warning(node, str); parser 15611 ext/ripper/ripper.c warn_unless_e_option(parser, node, "integer literal in conditional range"); parser 15614 ext/ripper/ripper.c return cond0(parser, node); parser 15642 ext/ripper/ripper.c assign_in_cond(parser, node); parser 15653 ext/ripper/ripper.c warning_unless_e_option(parser, node, "regex literal in condition"); parser 15658 ext/ripper/ripper.c node->nd_1st = cond0(parser, node->nd_1st); parser 15659 ext/ripper/ripper.c node->nd_2nd = cond0(parser, node->nd_2nd); parser 15664 ext/ripper/ripper.c node->nd_beg = range_op(parser, node->nd_beg); parser 15665 ext/ripper/ripper.c node->nd_end = range_op(parser, node->nd_end); parser 15668 ext/ripper/ripper.c if (!e_option_supplied(parser)) { parser 15683 ext/ripper/ripper.c warn_unless_e_option(parser, node, "regex literal in condition"); parser 15699 ext/ripper/ripper.c return cond0(parser, node); parser 15706 ext/ripper/ripper.c cc = cond0(parser, cc); parser 15737 ext/ripper/ripper.c no_blockarg(parser, node); parser 15753 ext/ripper/ripper.c if (node) no_blockarg(parser, node); parser 15969 ext/ripper/ripper.c if (hash) hash = remove_duplicate_keys(parser, hash); parser 16091 ext/ripper/ripper.c (ifndef_ripper(compile_for_eval || e_option_supplied(parser))+0)) && parser 16106 ext/ripper/ripper.c warn_unused_var(parser, lvtbl); parser 16180 ext/ripper/ripper.c return rb_local_defined(id, parser->base_block); parser 16209 ext/ripper/ripper.c if (parser->past_scope_enabled) { parser 16224 ext/ripper/ripper.c warn_unused_var(parser, lvtbl); parser 16228 ext/ripper/ripper.c dyna_pop_vtable(parser, &lvtbl->args); parser 16229 ext/ripper/ripper.c dyna_pop_vtable(parser, &lvtbl->vars); parser 16236 ext/ripper/ripper.c dyna_pop_1(parser); parser 16243 ext/ripper/ripper.c dyna_pop_1(parser); parser 16277 ext/ripper/ripper.c return rb_dvar_defined(id, parser->base_block); parser 16345 ext/ripper/ripper.c struct parser_params* parser; parser 16355 ext/ripper/ripper.c struct parser_params* parser = arg->parser; parser 16381 ext/ripper/ripper.c arg.parser = parser; parser 16404 ext/ripper/ripper.c re = parser_reg_compile(parser, str, options); parser 16423 ext/ripper/ripper.c VALUE re = parser_reg_compile(parser, str, options); parser 16436 ext/ripper/ripper.c struct parser_params *parser; parser 16440 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16468 ext/ripper/ripper.c struct parser_params *parser; parser 16472 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16528 ext/ripper/ripper.c parser->delayed = Qnil; parser 16529 ext/ripper/ripper.c parser->result = Qnil; parser 16530 ext/ripper/ripper.c parser->parsing_thread = Qnil; parser 16532 ext/ripper/ripper.c parser->error_buffer = Qfalse; parser 16534 ext/ripper/ripper.c parser->debug_buffer = Qnil; parser 16535 ext/ripper/ripper.c parser->enc = rb_utf8_encoding(); parser 16546 ext/ripper/ripper.c struct parser_params *parser = (struct parser_params*)ptr; parser 16558 ext/ripper/ripper.c rb_gc_mark(parser->compile_option); parser 16559 ext/ripper/ripper.c rb_gc_mark(parser->error_buffer); parser 16561 ext/ripper/ripper.c rb_gc_mark(parser->delayed); parser 16562 ext/ripper/ripper.c rb_gc_mark(parser->value); parser 16563 ext/ripper/ripper.c rb_gc_mark(parser->result); parser 16564 ext/ripper/ripper.c rb_gc_mark(parser->parsing_thread); parser 16566 ext/ripper/ripper.c rb_gc_mark(parser->debug_buffer); parser 16568 ext/ripper/ripper.c rb_gc_mark((VALUE)parser->heap); parser 16575 ext/ripper/ripper.c struct parser_params *parser = (struct parser_params*)ptr; parser 16588 ext/ripper/ripper.c while ((ptinfo = parser->token_info) != 0) { parser 16589 ext/ripper/ripper.c parser->token_info = ptinfo->next; parser 16599 ext/ripper/ripper.c struct parser_params *parser = (struct parser_params*)ptr; parser 16601 ext/ripper/ripper.c size_t size = sizeof(*parser); parser 16638 ext/ripper/ripper.c VALUE parser = TypedData_Make_Struct(0, struct parser_params, parser 16641 ext/ripper/ripper.c return parser; parser 16647 ext/ripper/ripper.c struct parser_params *parser; parser 16649 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16650 ext/ripper/ripper.c parser->error_buffer = main ? Qfalse : Qnil; parser 16651 ext/ripper/ripper.c parser->base_block = base; parser 16676 ext/ripper/ripper.c struct parser_params *parser; parser 16678 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16679 ext/ripper/ripper.c return parser->error_p ? Qtrue : Qfalse; parser 16692 ext/ripper/ripper.c struct parser_params *parser; parser 16694 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16707 ext/ripper/ripper.c struct parser_params *parser; parser 16709 ext/ripper/ripper.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16722 ext/ripper/ripper.c struct parser_params *parser; parser 16724 ext/ripper/ripper.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 16737 ext/ripper/ripper.c struct parser_params *parser; parser 16739 ext/ripper/ripper.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 16747 ext/ripper/ripper.c #define NEWHEAP() rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0) parser 16748 ext/ripper/ripper.c #define ADD2HEAP(n, c, p) ((parser->heap = (n))->u1.node = (p), \ parser 16777 ext/ripper/ripper.c if (ptr && (n = parser->heap) != NULL) { parser 16794 ext/ripper/ripper.c NODE **prev = &parser->heap, *n; parser 16812 ext/ripper/ripper.c VALUE mesg = parser->debug_buffer; parser 16814 ext/ripper/ripper.c if (NIL_P(mesg)) parser->debug_buffer = mesg = rb_str_new(0, 0); parser 16820 ext/ripper/ripper.c parser->debug_buffer = Qnil; parser 16829 ext/ripper/ripper.c parser->error_p = 1; parser 16831 ext/ripper/ripper.c parser->error_buffer = parser 16832 ext/ripper/ripper.c rb_syntax_error_append(parser->error_buffer, parser 16885 ext/ripper/ripper.c return rb_funcall(parser->value, mid, 0); parser 16892 ext/ripper/ripper.c return rb_funcall(parser->value, mid, 1, a); parser 16900 ext/ripper/ripper.c return rb_funcall(parser->value, mid, 2, a, b); parser 16909 ext/ripper/ripper.c return rb_funcall(parser->value, mid, 3, a, b, c); parser 16919 ext/ripper/ripper.c return rb_funcall(parser->value, mid, 4, a, b, c, d); parser 16930 ext/ripper/ripper.c return rb_funcall(parser->value, mid, 5, a, b, c, d, e); parser 16943 ext/ripper/ripper.c return rb_funcall(parser->value, mid, 7, a, b, c, d, e, f, g); parser 17058 ext/ripper/ripper.c parser->error_p = TRUE; parser 17070 ext/ripper/ripper.c rb_funcall(parser->value, rb_intern("compile_error"), 1, str); parser 17071 ext/ripper/ripper.c ripper_error_gen(parser); parser 17105 ext/ripper/ripper.c struct parser_params *parser; parser 17108 ext/ripper/ripper.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17118 ext/ripper/ripper.c parser->eofp = 0; parser 17127 ext/ripper/ripper.c parser_initialize(parser); parser 17137 ext/ripper/ripper.c struct parser_params *parser; parser 17145 ext/ripper/ripper.c struct parser_params *parser; parser 17147 ext/ripper/ripper.c TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 17148 ext/ripper/ripper.c parser_prepare(parser); parser 17149 ext/ripper/ripper.c ripper_yyparse((void*)parser); parser 17150 ext/ripper/ripper.c return parser->result; parser 17156 ext/ripper/ripper.c struct parser_params *parser; parser 17158 ext/ripper/ripper.c TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 17159 ext/ripper/ripper.c parser->parsing_thread = Qnil; parser 17172 ext/ripper/ripper.c struct parser_params *parser; parser 17174 ext/ripper/ripper.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17175 ext/ripper/ripper.c if (!ripper_initialized_p(parser)) { parser 17178 ext/ripper/ripper.c if (!NIL_P(parser->parsing_thread)) { parser 17179 ext/ripper/ripper.c if (parser->parsing_thread == rb_thread_current()) parser 17184 ext/ripper/ripper.c parser->parsing_thread = rb_thread_current(); parser 17187 ext/ripper/ripper.c return parser->result; parser 17200 ext/ripper/ripper.c struct parser_params *parser; parser 17203 ext/ripper/ripper.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17204 ext/ripper/ripper.c if (!ripper_initialized_p(parser)) { parser 17207 ext/ripper/ripper.c if (NIL_P(parser->parsing_thread)) return Qnil; parser 17208 ext/ripper/ripper.c col = parser->tokp - lex_pbeg; parser 17221 ext/ripper/ripper.c struct parser_params *parser; parser 17223 ext/ripper/ripper.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17224 ext/ripper/ripper.c if (!ripper_initialized_p(parser)) { parser 17240 ext/ripper/ripper.c struct parser_params *parser; parser 17242 ext/ripper/ripper.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17243 ext/ripper/ripper.c if (!ripper_initialized_p(parser)) { parser 17246 ext/ripper/ripper.c if (NIL_P(parser->parsing_thread)) return Qnil; parser 43 ext/ripper/ripper.y #define YYMALLOC(size) rb_parser_malloc(parser, (size)) parser 44 ext/ripper/ripper.y #define YYREALLOC(ptr, size) rb_parser_realloc(parser, (ptr), (size)) parser 45 ext/ripper/ripper.y #define YYCALLOC(nelem, size) rb_parser_calloc(parser, (nelem), (size)) parser 46 ext/ripper/ripper.y #define YYFREE(ptr) rb_parser_free(parser, (ptr)) parser 50 ext/ripper/ripper.y rb_parser_printf(parser, "%d.%d-%d.%d", \ parser 347 ext/ripper/ripper.y #define yyerror(msg) parser_yyerror(parser, (msg)) parser 349 ext/ripper/ripper.y #define lex_strterm (parser->lex.strterm) parser 350 ext/ripper/ripper.y #define lex_state (parser->lex.state) parser 351 ext/ripper/ripper.y #define cond_stack (parser->cond_stack) parser 352 ext/ripper/ripper.y #define cmdarg_stack (parser->cmdarg_stack) parser 353 ext/ripper/ripper.y #define paren_nest (parser->lex.paren_nest) parser 354 ext/ripper/ripper.y #define lpar_beg (parser->lex.lpar_beg) parser 355 ext/ripper/ripper.y #define brace_nest (parser->lex.brace_nest) parser 356 ext/ripper/ripper.y #define in_single (parser->in_single) parser 357 ext/ripper/ripper.y #define in_def (parser->in_def) parser 358 ext/ripper/ripper.y #define in_main (parser->in_main) parser 359 ext/ripper/ripper.y #define in_defined (parser->in_defined) parser 360 ext/ripper/ripper.y #define tokenbuf (parser->tokenbuf) parser 361 ext/ripper/ripper.y #define tokidx (parser->tokidx) parser 362 ext/ripper/ripper.y #define toksiz (parser->toksiz) parser 363 ext/ripper/ripper.y #define tokline (parser->tokline) parser 364 ext/ripper/ripper.y #define lex_input (parser->lex.input) parser 365 ext/ripper/ripper.y #define lex_lastline (parser->lex.lastline) parser 366 ext/ripper/ripper.y #define lex_nextline (parser->lex.nextline) parser 367 ext/ripper/ripper.y #define lex_pbeg (parser->lex.pbeg) parser 368 ext/ripper/ripper.y #define lex_p (parser->lex.pcur) parser 369 ext/ripper/ripper.y #define lex_pend (parser->lex.pend) parser 370 ext/ripper/ripper.y #define heredoc_end (parser->heredoc_end) parser 371 ext/ripper/ripper.y #define heredoc_indent (parser->heredoc_indent) parser 372 ext/ripper/ripper.y #define heredoc_line_indent (parser->heredoc_line_indent) parser 373 ext/ripper/ripper.y #define command_start (parser->command_start) parser 374 ext/ripper/ripper.y #define deferred_nodes (parser->deferred_nodes) parser 375 ext/ripper/ripper.y #define lex_gets_ptr (parser->lex.gets_ptr) parser 376 ext/ripper/ripper.y #define lex_gets (parser->lex.gets) parser 377 ext/ripper/ripper.y #define lvtbl (parser->lvtbl) parser 378 ext/ripper/ripper.y #define ruby__end__seen (parser->ruby__end__seen) parser 379 ext/ripper/ripper.y #define ruby_sourceline (parser->ruby_sourceline) parser 380 ext/ripper/ripper.y #define ruby_sourcefile (parser->ruby_sourcefile) parser 381 ext/ripper/ripper.y #define ruby_sourcefile_string (parser->ruby_sourcefile_string) parser 382 ext/ripper/ripper.y #define current_enc (parser->enc) parser 383 ext/ripper/ripper.y #define current_arg (parser->cur_arg) parser 384 ext/ripper/ripper.y #define yydebug (parser->yydebug) parser 388 ext/ripper/ripper.y #define compile_for_eval (parser->base_block != 0 && !in_main) parser 389 ext/ripper/ripper.y #define ruby_eval_tree (parser->eval_tree) parser 390 ext/ripper/ripper.y #define ruby_eval_tree_begin (parser->eval_tree_begin) parser 391 ext/ripper/ripper.y #define ruby_debug_lines (parser->debug_lines) parser 392 ext/ripper/ripper.y #define ruby_coverage (parser->coverage) parser 405 ext/ripper/ripper.y #define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, (type), (a1), (a2), (a3)) parser 408 ext/ripper/ripper.y #define cond(node) cond_gen(parser, (node)) parser 410 ext/ripper/ripper.y #define new_if(cc,left,right) new_if_gen(parser, (cc), (left), (right)) parser 411 ext/ripper/ripper.y #define new_unless(cc,left,right) new_if_gen(parser, (cc), (right), (left)) parser 413 ext/ripper/ripper.y #define logop(type,node1,node2) logop_gen(parser, (type), (node1), (node2)) parser 422 ext/ripper/ripper.y #define value_expr(node) value_expr_gen(parser, (node) = remove_begin(node)) parser 423 ext/ripper/ripper.y #define void_expr0(node) void_expr_gen(parser, (node)) parser 426 ext/ripper/ripper.y #define void_stmts(node) void_stmts_gen(parser, (node)) parser 428 ext/ripper/ripper.y #define reduce_nodes(n) reduce_nodes_gen(parser,(n)) parser 430 ext/ripper/ripper.y #define block_dup_check(n1,n2) block_dup_check_gen(parser,(n1),(n2)) parser 433 ext/ripper/ripper.y #define block_append(h,t) block_append_gen(parser,(h),(t)) parser 435 ext/ripper/ripper.y #define list_append(l,i) list_append_gen(parser,(l),(i)) parser 438 ext/ripper/ripper.y #define arg_append(h,t) arg_append_gen(parser,(h),(t)) parser 440 ext/ripper/ripper.y #define arg_concat(h,t) arg_concat_gen(parser,(h),(t)) parser 442 ext/ripper/ripper.y #define literal_concat(h,t) literal_concat_gen(parser,(h),(t)) parser 445 ext/ripper/ripper.y #define new_evstr(n) new_evstr_gen(parser,(n)) parser 447 ext/ripper/ripper.y #define evstr2dstr(n) evstr2dstr_gen(parser,(n)) parser 451 ext/ripper/ripper.y #define call_bin_op(recv,id,arg1) call_bin_op_gen(parser, (recv),(id),(arg1)) parser 453 ext/ripper/ripper.y #define call_uni_op(recv,id) call_uni_op_gen(parser, (recv),(id)) parser 456 ext/ripper/ripper.y #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 458 ext/ripper/ripper.y #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 463 ext/ripper/ripper.y #define ret_args(node) ret_args_gen(parser, (node)) parser 466 ext/ripper/ripper.y #define new_yield(node) new_yield_gen(parser, (node)) parser 468 ext/ripper/ripper.y #define dsym_node(node) dsym_node_gen(parser, (node)) parser 471 ext/ripper/ripper.y #define gettable(id) gettable_gen(parser,(id)) parser 473 ext/ripper/ripper.y #define assignable(id,node) assignable_gen(parser, (id), (node)) parser 476 ext/ripper/ripper.y #define aryset(node1,node2) aryset_gen(parser, (node1), (node2)) parser 478 ext/ripper/ripper.y #define attrset(node,q,id) attrset_gen(parser, (node), (q), (id)) parser 481 ext/ripper/ripper.y #define rb_backref_error(n) rb_backref_error_gen(parser,(n)) parser 483 ext/ripper/ripper.y #define node_assign(node1, node2) node_assign_gen(parser, (node1), (node2)) parser 487 ext/ripper/ripper.y #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 489 ext/ripper/ripper.y #define new_const_op_assign(lhs, op, rhs) new_const_op_assign_gen(parser, (lhs), (op), (rhs)) parser 494 ext/ripper/ripper.y #define new_hash(hash) new_hash_gen(parser, (hash)) parser 499 ext/ripper/ripper.y #define match_op(node1,node2) match_op_gen(parser, (node1), (node2)) parser 502 ext/ripper/ripper.y #define local_tbl() local_tbl_gen(parser) parser 507 ext/ripper/ripper.y #define reg_compile(str,options) reg_compile_gen(parser, (str), (options)) parser 509 ext/ripper/ripper.y #define reg_fragment_setenc(str,options) reg_fragment_setenc_gen(parser, (str), (options)) parser 511 ext/ripper/ripper.y #define reg_fragment_check(str,options) reg_fragment_check_gen(parser, (str), (options)) parser 513 ext/ripper/ripper.y #define reg_named_capture_assign(regexp) reg_named_capture_assign_gen(parser,(regexp)) parser 516 ext/ripper/ripper.y # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 544 ext/ripper/ripper.y #define assignable(lhs,node) assignable_gen(parser, (lhs)) parser 546 ext/ripper/ripper.y #define id_is_var(id) id_is_var_gen(parser, (id)) parser 552 ext/ripper/ripper.y #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 556 ext/ripper/ripper.y #define new_op_assign(lhs, op, rhs) new_op_assign_gen(parser, (lhs), (op), (rhs)) parser 561 ext/ripper/ripper.y #define formal_argument(id) formal_argument_gen(parser, (id)) parser 563 ext/ripper/ripper.y #define shadowing_lvar(name) shadowing_lvar_gen(parser, (name)) parser 565 ext/ripper/ripper.y #define new_bv(id) new_bv_gen(parser, (id)) parser 568 ext/ripper/ripper.y #define local_push(top) local_push_gen(parser,(top)) parser 570 ext/ripper/ripper.y #define local_pop() local_pop_gen(parser) parser 572 ext/ripper/ripper.y #define local_var(id) local_var_gen(parser, (id)) parser 574 ext/ripper/ripper.y #define arg_var(id) arg_var_gen(parser, (id)) parser 576 ext/ripper/ripper.y #define local_id(id) local_id_gen(parser, (id)) parser 578 ext/ripper/ripper.y #define internal_id() internal_id_gen(parser) parser 581 ext/ripper/ripper.y #define dyna_push() dyna_push_gen(parser) parser 583 ext/ripper/ripper.y #define dyna_pop(node) dyna_pop_gen(parser, (node)) parser 585 ext/ripper/ripper.y #define dyna_in_block() dyna_in_block_gen(parser) parser 588 ext/ripper/ripper.y #define dvar_defined(id) dvar_defined_gen(parser, (id), 0) parser 589 ext/ripper/ripper.y #define dvar_defined_get(id) dvar_defined_gen(parser, (id), 1) parser 591 ext/ripper/ripper.y #define dvar_curr(id) dvar_curr_gen(parser, (id)) parser 594 ext/ripper/ripper.y #define lvar_defined(id) lvar_defined_gen(parser, (id)) parser 634 ext/ripper/ripper.y #define ripper_error() ripper_error_gen(parser) parser 636 ext/ripper/ripper.y #define dispatch0(n) ripper_dispatch0(parser, TOKEN_PASTE(ripper_id_, n)) parser 637 ext/ripper/ripper.y #define dispatch1(n,a) ripper_dispatch1(parser, TOKEN_PASTE(ripper_id_, n), (a)) parser 638 ext/ripper/ripper.y #define dispatch2(n,a,b) ripper_dispatch2(parser, TOKEN_PASTE(ripper_id_, n), (a), (b)) parser 639 ext/ripper/ripper.y #define dispatch3(n,a,b,c) ripper_dispatch3(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c)) parser 640 ext/ripper/ripper.y #define dispatch4(n,a,b,c,d) ripper_dispatch4(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d)) parser 641 ext/ripper/ripper.y #define dispatch5(n,a,b,c,d,e) ripper_dispatch5(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e)) parser 642 ext/ripper/ripper.y #define dispatch7(n,a,b,c,d,e,f,g) ripper_dispatch7(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e), (f), (g)) parser 690 ext/ripper/ripper.y #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 697 ext/ripper/ripper.y #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 702 ext/ripper/ripper.y # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 741 ext/ripper/ripper.y # define WARN_ARGS(fmt,n) parser->value, id_warn, n, rb_usascii_str_new_lit(fmt) parser 744 ext/ripper/ripper.y # define WARNING_ARGS(fmt,n) parser->value, id_warning, n, rb_usascii_str_new_lit(fmt) parser 749 ext/ripper/ripper.y # define PARSER_ARG parser, parser 762 ext/ripper/ripper.y # define PARSER_ARG parser, parser 776 ext/ripper/ripper.y #define token_info_push(token) token_info_push_gen(parser, (token), rb_strlen_lit(token)) parser 777 ext/ripper/ripper.y #define token_info_pop(token) token_info_pop_gen(parser, (token), rb_strlen_lit(token)) parser 780 ext/ripper/ripper.y %pure-parser parser 781 ext/ripper/ripper.y %lex-param {struct parser_params *parser} parser 782 ext/ripper/ripper.y %parse-param {struct parser_params *parser} parser 974 ext/ripper/ripper.y parser->result = dispatch1(program, $$); parser 4020 ext/ripper/ripper.y if (!literal_concat0(parser, lit, tail)) { parser 4057 ext/ripper/ripper.y if (src && NIL_P(rb_parser_reg_compile(parser, src, options, &err))) { parser 4549 ext/ripper/ripper.y $<num>$ = parser->in_kwarg; parser 4550 ext/ripper/ripper.y parser->in_kwarg = 1; parser 4555 ext/ripper/ripper.y parser->in_kwarg = !!$<num>1; parser 5220 ext/ripper/ripper.y # define yylval (*parser->lval) parser 5229 ext/ripper/ripper.y # define nextc() parser_nextc(parser) parser 5230 ext/ripper/ripper.y # define pushback(c) parser_pushback(parser, (c)) parser 5231 ext/ripper/ripper.y # define newtok() parser_newtok(parser) parser 5232 ext/ripper/ripper.y # define tokspace(n) parser_tokspace(parser, (n)) parser 5233 ext/ripper/ripper.y # define tokadd(c) parser_tokadd(parser, (c)) parser 5234 ext/ripper/ripper.y # define tok_hex(numlen) parser_tok_hex(parser, (numlen)) parser 5235 ext/ripper/ripper.y # define read_escape(flags,e) parser_read_escape(parser, (flags), (e)) parser 5236 ext/ripper/ripper.y # define tokadd_escape(e) parser_tokadd_escape(parser, (e)) parser 5237 ext/ripper/ripper.y # define regx_options() parser_regx_options(parser) parser 5238 ext/ripper/ripper.y # define tokadd_string(f,t,p,n,e) parser_tokadd_string(parser,(f),(t),(p),(n),(e)) parser 5239 ext/ripper/ripper.y # define parse_string(n) parser_parse_string(parser,(n)) parser 5240 ext/ripper/ripper.y # define tokaddmbc(c, enc) parser_tokaddmbc(parser, (c), (enc)) parser 5241 ext/ripper/ripper.y # define here_document(n) parser_here_document(parser,(n)) parser 5242 ext/ripper/ripper.y # define heredoc_identifier() parser_heredoc_identifier(parser) parser 5243 ext/ripper/ripper.y # define heredoc_restore(n) parser_heredoc_restore(parser,(n)) parser 5244 ext/ripper/ripper.y # define whole_match_p(e,l,i) parser_whole_match_p(parser,(e),(l),(i)) parser 5245 ext/ripper/ripper.y # define number_literal_suffix(f) parser_number_literal_suffix(parser, (f)) parser 5246 ext/ripper/ripper.y # define set_number_literal(v, t, f) parser_set_number_literal(parser, (v), (t), (f)) parser 5247 ext/ripper/ripper.y # define set_integer_literal(v, f) parser_set_integer_literal(parser, (v), (f)) parser 5293 ext/ripper/ripper.y if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); parser 5294 ext/ripper/ripper.y return lex_p > parser->tokp; parser 5300 ext/ripper/ripper.y VALUE str = STR_NEW(parser->tokp, lex_p - parser->tokp); parser 5301 ext/ripper/ripper.y VALUE rval = ripper_dispatch1(parser, ripper_token2eventid(t), str); parser 5302 ext/ripper/ripper.y ripper_flush(parser); parser 5309 ext/ripper/ripper.y if (!ripper_has_scan_event(parser)) return; parser 5310 ext/ripper/ripper.y yylval_rval = ripper_scan_event_val(parser, t); parser 5312 ext/ripper/ripper.y #define dispatch_scan_event(t) ripper_dispatch_scan_event(parser, t) parser 5318 ext/ripper/ripper.y const char *saved_tokp = parser->tokp; parser 5320 ext/ripper/ripper.y ruby_sourceline = parser->delayed_line; parser 5321 ext/ripper/ripper.y parser->tokp = lex_pbeg + parser->delayed_col; parser 5322 ext/ripper/ripper.y yylval_rval = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed); parser 5323 ext/ripper/ripper.y parser->delayed = Qnil; parser 5325 ext/ripper/ripper.y parser->tokp = saved_tokp; parser 5327 ext/ripper/ripper.y #define dispatch_delayed_token(t) ripper_dispatch_delayed_token(parser, t) parser 5328 ext/ripper/ripper.y #define has_delayed_token() (!NIL_P(parser->delayed)) parser 5338 ext/ripper/ripper.y #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc)) parser 5374 ext/ripper/ripper.y if (!parser->token_info_enabled) return; parser 5378 ext/ripper/ripper.y ptinfo->column = token_info_get_column(parser, t); parser 5379 ext/ripper/ripper.y ptinfo->nonspc = token_info_has_nonspaces(parser, t); parser 5380 ext/ripper/ripper.y ptinfo->next = parser->token_info; parser 5382 ext/ripper/ripper.y parser->token_info = ptinfo; parser 5389 ext/ripper/ripper.y token_info *ptinfo = parser->token_info; parser 5393 ext/ripper/ripper.y parser->token_info = ptinfo->next; parser 5395 ext/ripper/ripper.y if (parser->token_info_enabled && parser 5397 ext/ripper/ripper.y !token_info_has_nonspaces(parser, t) && parser 5398 ext/ripper/ripper.y token_info_get_column(parser, t) != ptinfo->column) { parser 5514 ext/ripper/ripper.y struct parser_params *parser = (struct parser_params *)arg; parser 5527 ext/ripper/ripper.y if (!e_option_supplied(parser)) { parser 5533 ext/ripper/ripper.y parser_prepare(parser); parser 5541 ext/ripper/ripper.y n = yyparse((void*)parser); parser 5551 ext/ripper/ripper.y if (parser->error_p) { parser 5552 ext/ripper/ripper.y VALUE mesg = parser->error_buffer; parser 5564 ext/ripper/ripper.y VALUE opt = parser->compile_option; parser 5578 ext/ripper/ripper.y return (NODE *)rb_suppress_tracing(yycompile0, (VALUE)parser); parser 5615 ext/ripper/ripper.y VALUE line = (*lex_gets)(parser, lex_input); parser 5636 ext/ripper/ripper.y struct parser_params *parser; parser 5639 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 5645 ext/ripper/ripper.y node = yycompile(parser, fname, line); parser 5710 ext/ripper/ripper.y struct parser_params *parser; parser 5713 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 5718 ext/ripper/ripper.y node = yycompile(parser, fname, start); parser 5762 ext/ripper/ripper.y #define lex_goto_eol(parser) ((parser)->lex.pcur = (parser)->lex.pend) parser 5775 ext/ripper/ripper.y if (parser->eofp) parser 5778 ext/ripper/ripper.y if (!lex_input || NIL_P(v = lex_getline(parser))) { parser 5779 ext/ripper/ripper.y parser->eofp = 1; parser 5780 ext/ripper/ripper.y lex_goto_eol(parser); parser 5783 ext/ripper/ripper.y parser->cr_seen = FALSE; parser 5786 ext/ripper/ripper.y if (parser->tokp < lex_pend) { parser 5788 ext/ripper/ripper.y parser->delayed = rb_str_buf_new(1024); parser 5789 ext/ripper/ripper.y rb_enc_associate(parser->delayed, current_enc); parser 5790 ext/ripper/ripper.y rb_str_buf_cat(parser->delayed, parser 5791 ext/ripper/ripper.y parser->tokp, lex_pend - parser->tokp); parser 5792 ext/ripper/ripper.y parser->delayed_line = ruby_sourceline; parser 5793 ext/ripper/ripper.y parser->delayed_col = (int)(parser->tokp - lex_pbeg); parser 5796 ext/ripper/ripper.y rb_str_buf_cat(parser->delayed, parser 5797 ext/ripper/ripper.y parser->tokp, lex_pend - parser->tokp); parser 5806 ext/ripper/ripper.y parser->line_count++; parser 5809 ext/ripper/ripper.y ripper_flush(parser); parser 5821 ext/ripper/ripper.y else if (!parser->cr_seen) { parser 5822 ext/ripper/ripper.y parser->cr_seen = TRUE; parser 5835 ext/ripper/ripper.y if (parser_nextline(parser)) return -1; parser 5839 ext/ripper/ripper.y c = parser_cr(parser, c); parser 6220 ext/ripper/ripper.y #define tokadd_mbchar(c) parser_tokadd_mbchar(parser, (c)) parser 6291 ext/ripper/ripper.y parser_update_heredoc_indent(parser, c); parser 6330 ext/ripper/ripper.y parser_tokadd_utf8(parser, &enc, 1, parser 6410 ext/ripper/ripper.y ptrdiff_t len = lex_p - parser->tokp; parser 6412 ext/ripper/ripper.y rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 6415 ext/ripper/ripper.y parser->tokp = lex_p; parser 6424 ext/ripper/ripper.y #define flush_string_content(enc) ripper_flush_string_content(parser, (enc)) parser 6517 ext/ripper/ripper.y int t = parser_peek_variable_name(parser); parser 6527 ext/ripper/ripper.y if (parser->eofp) parser 6532 ext/ripper/ripper.y if (parser->eofp) parser 6602 ext/ripper/ripper.y lex_goto_eol(parser); parser 6608 ext/ripper/ripper.y ripper_flush(parser); parser 6627 ext/ripper/ripper.y ripper_flush(parser); parser 6798 ext/ripper/ripper.y str = STR_NEW(parser->tokp, lex_pend - parser->tokp); parser 6799 ext/ripper/ripper.y ripper_dispatch1(parser, ripper_token2eventid(tHEREDOC_END), str); parser 6800 ext/ripper/ripper.y lex_goto_eol(parser); parser 6801 ext/ripper/ripper.y ripper_flush(parser); parser 6804 ext/ripper/ripper.y #define dispatch_heredoc_end() ripper_dispatch_heredoc_end(parser) parser 6831 ext/ripper/ripper.y rb_str_append(parser->delayed, str); parser 6833 ext/ripper/ripper.y else if ((len = lex_p - parser->tokp) > 0) { parser 6836 ext/ripper/ripper.y rb_str_coderange_scan_restartable(parser->tokp, lex_p, enc, &cr); parser 6843 ext/ripper/ripper.y rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 6847 ext/ripper/ripper.y lex_goto_eol(parser); parser 6877 ext/ripper/ripper.y while (p + i < pend && parser_update_heredoc_indent(parser, p[i])) parser 6887 ext/ripper/ripper.y lex_goto_eol(parser); parser 6906 ext/ripper/ripper.y int t = parser_peek_variable_name(parser); parser 6914 ext/ripper/ripper.y if (parser->eofp) goto error; parser 6925 ext/ripper/ripper.y lex_goto_eol(parser); parser 6955 ext/ripper/ripper.y #define arg_ambiguous(c) (arg_ambiguous_gen(parser, (c)), 1) parser 7037 ext/ripper/ripper.y parser->enc = enc; parser 7053 ext/ripper/ripper.y if (parser->line_count != (parser->has_shebang ? 2 : 1)) return 0; parser 7067 ext/ripper/ripper.y if (!comment_at_top(parser)) { parser 7070 ext/ripper/ripper.y parser_set_encode(parser, val); parser 7095 ext/ripper/ripper.y int b = parser_get_bool(parser, name, val); parser 7096 ext/ripper/ripper.y if (b >= 0) parser->token_info_enabled = b; parser 7104 ext/ripper/ripper.y if (parser->token_seen) { parser 7109 ext/ripper/ripper.y b = parser_get_bool(parser, name, val); parser 7112 ext/ripper/ripper.y if (!parser->compile_option) parser 7113 ext/ripper/ripper.y parser->compile_option = rb_obj_hide(rb_ident_hash_new()); parser 7114 ext/ripper/ripper.y rb_hash_aset(parser->compile_option, ID2SYM(rb_intern(name)), parser 7122 ext/ripper/ripper.y int b = parser_get_bool(parser, name, val); parser 7123 ext/ripper/ripper.y if (b >= 0) parser->past_scope_enabled = b; parser 7264 ext/ripper/ripper.y n = (*p->length)(parser, vbeg, n); parser 7267 ext/ripper/ripper.y (*p->func)(parser, p->name, RSTRING_PTR(val)); parser 7318 ext/ripper/ripper.y s = rb_str_new(beg, parser_encode_length(parser, beg, str - beg)); parser 7319 ext/ripper/ripper.y parser_set_encode(parser, RSTRING_PTR(s)); parser 7329 ext/ripper/ripper.y if (peek('!')) parser->has_shebang = 1; parser 7335 ext/ripper/ripper.y parser->enc = rb_utf8_encoding(); parser 7345 ext/ripper/ripper.y parser->enc = rb_enc_get(lex_lastline); parser 7347 ext/ripper/ripper.y parser->token_info_enabled = !compile_for_eval && RTEST(ruby_verbose); parser 7602 ext/ripper/ripper.y v = parse_rational(parser, tok(), toklen(), seen_point); parser 7677 ext/ripper/ripper.y c = parser_tokadd_utf8(parser, &enc, 0, 0, 0); parser 7921 ext/ripper/ripper.y set_yylval_node(NEW_NTH_REF(parse_numvar(parser))); parser 7939 ext/ripper/ripper.y if (tokadd_ident(parser, c)) return 0; parser 7941 ext/ripper/ripper.y tokenize_ident(parser, last_state); parser 7978 ext/ripper/ripper.y if (tokadd_ident(parser, c)) return 0; parser 7980 ext/ripper/ripper.y tokenize_ident(parser, last_state); parser 8090 ext/ripper/ripper.y ident = tokenize_ident(parser, last_state); parser 8108 ext/ripper/ripper.y int token_seen = parser->token_seen; parser 8138 ext/ripper/ripper.y parser->token_seen = TRUE; parser 8169 ext/ripper/ripper.y parser->token_seen = token_seen; parser 8171 ext/ripper/ripper.y if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { parser 8172 ext/ripper/ripper.y if (comment_at_top(parser)) { parser 8173 ext/ripper/ripper.y set_file_encoding(parser, lex_p, lex_pend); parser 8181 ext/ripper/ripper.y parser->token_seen = token_seen; parser 8189 ext/ripper/ripper.y if (!c && parser->in_kwarg) { parser 8213 ext/ripper/ripper.y lex_goto_eol(parser); parser 8216 ext/ripper/ripper.y parser->tokp = lex_p; parser 8295 ext/ripper/ripper.y lex_goto_eol(parser); parser 8298 ext/ripper/ripper.y lex_goto_eol(parser); parser 8314 ext/ripper/ripper.y lex_goto_eol(parser); parser 8418 ext/ripper/ripper.y return parse_qmark(parser); parser 8494 ext/ripper/ripper.y return parse_numeric(parser, '+'); parser 8554 ext/ripper/ripper.y return parse_numeric(parser, c); parser 8727 ext/ripper/ripper.y return parse_percent(parser, space_seen, last_state); parser 8730 ext/ripper/ripper.y return parse_gvar(parser, last_state); parser 8733 ext/ripper/ripper.y return parse_atmark(parser, last_state); parser 8738 ext/ripper/ripper.y parser->eofp = 1; parser 8742 ext/ripper/ripper.y lex_goto_eol(parser); parser 8760 ext/ripper/ripper.y return parse_ident(parser, c, cmd_state); parser 8768 ext/ripper/ripper.y parser->lval = lval; parser 8770 ext/ripper/ripper.y t = parser_yylex(parser); parser 8824 ext/ripper/ripper.y #define parser_warning(node, mesg) parser_warning(parser, (node), (mesg)) parser 8831 ext/ripper/ripper.y #define parser_warn(node, mesg) parser_warn(parser, (node), (mesg)) parser 8985 ext/ripper/ripper.y if (!literal_concat0(parser, lit, tail->nd_lit)) { parser 9000 ext/ripper/ripper.y if (!literal_concat0(parser, head->nd_lit, tail->nd_lit)) parser 9016 ext/ripper/ripper.y if (!literal_concat0(parser, lit, tail->nd_lit)) parser 9158 ext/ripper/ripper.y if (!in_defined && RTEST(ruby_verbose) && past_dvar_p(parser, id)) { parser 9390 ext/ripper/ripper.y shadowing_lvar_0(parser, name); parser 9403 ext/ripper/ripper.y if (!shadowing_lvar_0(parser, name)) return; parser 9812 ext/ripper/ripper.y if (!e_option_supplied(parser)) parser_warn(node, str); parser 9818 ext/ripper/ripper.y if (!e_option_supplied(parser)) parser_warning(node, str); parser 9862 ext/ripper/ripper.y warn_unless_e_option(parser, node, "integer literal in conditional range"); parser 9865 ext/ripper/ripper.y return cond0(parser, node); parser 9893 ext/ripper/ripper.y assign_in_cond(parser, node); parser 9904 ext/ripper/ripper.y warning_unless_e_option(parser, node, "regex literal in condition"); parser 9909 ext/ripper/ripper.y node->nd_1st = cond0(parser, node->nd_1st); parser 9910 ext/ripper/ripper.y node->nd_2nd = cond0(parser, node->nd_2nd); parser 9915 ext/ripper/ripper.y node->nd_beg = range_op(parser, node->nd_beg); parser 9916 ext/ripper/ripper.y node->nd_end = range_op(parser, node->nd_end); parser 9919 ext/ripper/ripper.y if (!e_option_supplied(parser)) { parser 9934 ext/ripper/ripper.y warn_unless_e_option(parser, node, "regex literal in condition"); parser 9950 ext/ripper/ripper.y return cond0(parser, node); parser 9957 ext/ripper/ripper.y cc = cond0(parser, cc); parser 9988 ext/ripper/ripper.y no_blockarg(parser, node); parser 10004 ext/ripper/ripper.y if (node) no_blockarg(parser, node); parser 10220 ext/ripper/ripper.y if (hash) hash = remove_duplicate_keys(parser, hash); parser 10342 ext/ripper/ripper.y (ifndef_ripper(compile_for_eval || e_option_supplied(parser))+0)) && parser 10357 ext/ripper/ripper.y warn_unused_var(parser, lvtbl); parser 10431 ext/ripper/ripper.y return rb_local_defined(id, parser->base_block); parser 10460 ext/ripper/ripper.y if (parser->past_scope_enabled) { parser 10475 ext/ripper/ripper.y warn_unused_var(parser, lvtbl); parser 10479 ext/ripper/ripper.y dyna_pop_vtable(parser, &lvtbl->args); parser 10480 ext/ripper/ripper.y dyna_pop_vtable(parser, &lvtbl->vars); parser 10487 ext/ripper/ripper.y dyna_pop_1(parser); parser 10494 ext/ripper/ripper.y dyna_pop_1(parser); parser 10528 ext/ripper/ripper.y return rb_dvar_defined(id, parser->base_block); parser 10596 ext/ripper/ripper.y struct parser_params* parser; parser 10606 ext/ripper/ripper.y struct parser_params* parser = arg->parser; parser 10632 ext/ripper/ripper.y arg.parser = parser; parser 10655 ext/ripper/ripper.y re = parser_reg_compile(parser, str, options); parser 10674 ext/ripper/ripper.y VALUE re = parser_reg_compile(parser, str, options); parser 10687 ext/ripper/ripper.y struct parser_params *parser; parser 10691 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10719 ext/ripper/ripper.y struct parser_params *parser; parser 10723 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10779 ext/ripper/ripper.y parser->delayed = Qnil; parser 10780 ext/ripper/ripper.y parser->result = Qnil; parser 10781 ext/ripper/ripper.y parser->parsing_thread = Qnil; parser 10783 ext/ripper/ripper.y parser->error_buffer = Qfalse; parser 10785 ext/ripper/ripper.y parser->debug_buffer = Qnil; parser 10786 ext/ripper/ripper.y parser->enc = rb_utf8_encoding(); parser 10797 ext/ripper/ripper.y struct parser_params *parser = (struct parser_params*)ptr; parser 10809 ext/ripper/ripper.y rb_gc_mark(parser->compile_option); parser 10810 ext/ripper/ripper.y rb_gc_mark(parser->error_buffer); parser 10812 ext/ripper/ripper.y rb_gc_mark(parser->delayed); parser 10813 ext/ripper/ripper.y rb_gc_mark(parser->value); parser 10814 ext/ripper/ripper.y rb_gc_mark(parser->result); parser 10815 ext/ripper/ripper.y rb_gc_mark(parser->parsing_thread); parser 10817 ext/ripper/ripper.y rb_gc_mark(parser->debug_buffer); parser 10819 ext/ripper/ripper.y rb_gc_mark((VALUE)parser->heap); parser 10826 ext/ripper/ripper.y struct parser_params *parser = (struct parser_params*)ptr; parser 10839 ext/ripper/ripper.y while ((ptinfo = parser->token_info) != 0) { parser 10840 ext/ripper/ripper.y parser->token_info = ptinfo->next; parser 10850 ext/ripper/ripper.y struct parser_params *parser = (struct parser_params*)ptr; parser 10852 ext/ripper/ripper.y size_t size = sizeof(*parser); parser 10889 ext/ripper/ripper.y VALUE parser = TypedData_Make_Struct(0, struct parser_params, parser 10892 ext/ripper/ripper.y return parser; parser 10898 ext/ripper/ripper.y struct parser_params *parser; parser 10900 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10901 ext/ripper/ripper.y parser->error_buffer = main ? Qfalse : Qnil; parser 10902 ext/ripper/ripper.y parser->base_block = base; parser 10927 ext/ripper/ripper.y struct parser_params *parser; parser 10929 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10930 ext/ripper/ripper.y return parser->error_p ? Qtrue : Qfalse; parser 10943 ext/ripper/ripper.y struct parser_params *parser; parser 10945 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10958 ext/ripper/ripper.y struct parser_params *parser; parser 10960 ext/ripper/ripper.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10973 ext/ripper/ripper.y struct parser_params *parser; parser 10975 ext/ripper/ripper.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 10988 ext/ripper/ripper.y struct parser_params *parser; parser 10990 ext/ripper/ripper.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 10998 ext/ripper/ripper.y #define NEWHEAP() rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0) parser 10999 ext/ripper/ripper.y #define ADD2HEAP(n, c, p) ((parser->heap = (n))->u1.node = (p), \ parser 11028 ext/ripper/ripper.y if (ptr && (n = parser->heap) != NULL) { parser 11045 ext/ripper/ripper.y NODE **prev = &parser->heap, *n; parser 11063 ext/ripper/ripper.y VALUE mesg = parser->debug_buffer; parser 11065 ext/ripper/ripper.y if (NIL_P(mesg)) parser->debug_buffer = mesg = rb_str_new(0, 0); parser 11071 ext/ripper/ripper.y parser->debug_buffer = Qnil; parser 11080 ext/ripper/ripper.y parser->error_p = 1; parser 11082 ext/ripper/ripper.y parser->error_buffer = parser 11083 ext/ripper/ripper.y rb_syntax_error_append(parser->error_buffer, parser 11136 ext/ripper/ripper.y return rb_funcall(parser->value, mid, 0); parser 11143 ext/ripper/ripper.y return rb_funcall(parser->value, mid, 1, a); parser 11151 ext/ripper/ripper.y return rb_funcall(parser->value, mid, 2, a, b); parser 11160 ext/ripper/ripper.y return rb_funcall(parser->value, mid, 3, a, b, c); parser 11170 ext/ripper/ripper.y return rb_funcall(parser->value, mid, 4, a, b, c, d); parser 11181 ext/ripper/ripper.y return rb_funcall(parser->value, mid, 5, a, b, c, d, e); parser 11194 ext/ripper/ripper.y return rb_funcall(parser->value, mid, 7, a, b, c, d, e, f, g); parser 11309 ext/ripper/ripper.y parser->error_p = TRUE; parser 11321 ext/ripper/ripper.y rb_funcall(parser->value, rb_intern("compile_error"), 1, str); parser 11322 ext/ripper/ripper.y ripper_error_gen(parser); parser 11356 ext/ripper/ripper.y struct parser_params *parser; parser 11359 ext/ripper/ripper.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11369 ext/ripper/ripper.y parser->eofp = 0; parser 11378 ext/ripper/ripper.y parser_initialize(parser); parser 11388 ext/ripper/ripper.y struct parser_params *parser; parser 11396 ext/ripper/ripper.y struct parser_params *parser; parser 11398 ext/ripper/ripper.y TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 11399 ext/ripper/ripper.y parser_prepare(parser); parser 11400 ext/ripper/ripper.y ripper_yyparse((void*)parser); parser 11401 ext/ripper/ripper.y return parser->result; parser 11407 ext/ripper/ripper.y struct parser_params *parser; parser 11409 ext/ripper/ripper.y TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 11410 ext/ripper/ripper.y parser->parsing_thread = Qnil; parser 11423 ext/ripper/ripper.y struct parser_params *parser; parser 11425 ext/ripper/ripper.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11426 ext/ripper/ripper.y if (!ripper_initialized_p(parser)) { parser 11429 ext/ripper/ripper.y if (!NIL_P(parser->parsing_thread)) { parser 11430 ext/ripper/ripper.y if (parser->parsing_thread == rb_thread_current()) parser 11435 ext/ripper/ripper.y parser->parsing_thread = rb_thread_current(); parser 11438 ext/ripper/ripper.y return parser->result; parser 11451 ext/ripper/ripper.y struct parser_params *parser; parser 11454 ext/ripper/ripper.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11455 ext/ripper/ripper.y if (!ripper_initialized_p(parser)) { parser 11458 ext/ripper/ripper.y if (NIL_P(parser->parsing_thread)) return Qnil; parser 11459 ext/ripper/ripper.y col = parser->tokp - lex_pbeg; parser 11472 ext/ripper/ripper.y struct parser_params *parser; parser 11474 ext/ripper/ripper.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11475 ext/ripper/ripper.y if (!ripper_initialized_p(parser)) { parser 11491 ext/ripper/ripper.y struct parser_params *parser; parser 11493 ext/ripper/ripper.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11494 ext/ripper/ripper.y if (!ripper_initialized_p(parser)) { parser 11497 ext/ripper/ripper.y if (NIL_P(parser->parsing_thread)) return Qnil; parser 638 iseq.c const VALUE parser = rb_parser_new(); parser 639 iseq.c rb_parser_set_context(parser, base_block, FALSE); parser 640 iseq.c node = (*parse)(parser, file, src, ln); parser 817 iseq.c VALUE parser; parser 831 iseq.c parser = rb_parser_new(); parser 832 iseq.c node = rb_parser_compile_file(parser, fname, f, NUM2INT(line)); parser 612 load.c VALUE parser = rb_parser_new(); parser 613 load.c rb_parser_set_context(parser, NULL, TRUE); parser 614 load.c node = (NODE *)rb_parser_load_file(parser, fname); parser 509 node.h void rb_parser_printf(struct parser_params *parser, const char *fmt, ...); parser 97 parse.c #define YYMALLOC(size) rb_parser_malloc(parser, (size)) parser 98 parse.c #define YYREALLOC(ptr, size) rb_parser_realloc(parser, (ptr), (size)) parser 99 parse.c #define YYCALLOC(nelem, size) rb_parser_calloc(parser, (nelem), (size)) parser 100 parse.c #define YYFREE(ptr) rb_parser_free(parser, (ptr)) parser 104 parse.c rb_parser_printf(parser, "%d.%d-%d.%d", \ parser 401 parse.c #define yyerror(msg) parser_yyerror(parser, (msg)) parser 403 parse.c #define lex_strterm (parser->lex.strterm) parser 404 parse.c #define lex_state (parser->lex.state) parser 405 parse.c #define cond_stack (parser->cond_stack) parser 406 parse.c #define cmdarg_stack (parser->cmdarg_stack) parser 407 parse.c #define paren_nest (parser->lex.paren_nest) parser 408 parse.c #define lpar_beg (parser->lex.lpar_beg) parser 409 parse.c #define brace_nest (parser->lex.brace_nest) parser 410 parse.c #define in_single (parser->in_single) parser 411 parse.c #define in_def (parser->in_def) parser 412 parse.c #define in_main (parser->in_main) parser 413 parse.c #define in_defined (parser->in_defined) parser 414 parse.c #define tokenbuf (parser->tokenbuf) parser 415 parse.c #define tokidx (parser->tokidx) parser 416 parse.c #define toksiz (parser->toksiz) parser 417 parse.c #define tokline (parser->tokline) parser 418 parse.c #define lex_input (parser->lex.input) parser 419 parse.c #define lex_lastline (parser->lex.lastline) parser 420 parse.c #define lex_nextline (parser->lex.nextline) parser 421 parse.c #define lex_pbeg (parser->lex.pbeg) parser 422 parse.c #define lex_p (parser->lex.pcur) parser 423 parse.c #define lex_pend (parser->lex.pend) parser 424 parse.c #define heredoc_end (parser->heredoc_end) parser 425 parse.c #define heredoc_indent (parser->heredoc_indent) parser 426 parse.c #define heredoc_line_indent (parser->heredoc_line_indent) parser 427 parse.c #define command_start (parser->command_start) parser 428 parse.c #define deferred_nodes (parser->deferred_nodes) parser 429 parse.c #define lex_gets_ptr (parser->lex.gets_ptr) parser 430 parse.c #define lex_gets (parser->lex.gets) parser 431 parse.c #define lvtbl (parser->lvtbl) parser 432 parse.c #define ruby__end__seen (parser->ruby__end__seen) parser 433 parse.c #define ruby_sourceline (parser->ruby_sourceline) parser 434 parse.c #define ruby_sourcefile (parser->ruby_sourcefile) parser 435 parse.c #define ruby_sourcefile_string (parser->ruby_sourcefile_string) parser 436 parse.c #define current_enc (parser->enc) parser 437 parse.c #define current_arg (parser->cur_arg) parser 438 parse.c #define yydebug (parser->yydebug) parser 442 parse.c #define compile_for_eval (parser->base_block != 0 && !in_main) parser 443 parse.c #define ruby_eval_tree (parser->eval_tree) parser 444 parse.c #define ruby_eval_tree_begin (parser->eval_tree_begin) parser 445 parse.c #define ruby_debug_lines (parser->debug_lines) parser 446 parse.c #define ruby_coverage (parser->coverage) parser 459 parse.c #define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, (type), (a1), (a2), (a3)) parser 462 parse.c #define cond(node) cond_gen(parser, (node)) parser 464 parse.c #define new_if(cc,left,right) new_if_gen(parser, (cc), (left), (right)) parser 465 parse.c #define new_unless(cc,left,right) new_if_gen(parser, (cc), (right), (left)) parser 467 parse.c #define logop(type,node1,node2) logop_gen(parser, (type), (node1), (node2)) parser 476 parse.c #define value_expr(node) value_expr_gen(parser, (node) = remove_begin(node)) parser 477 parse.c #define void_expr0(node) void_expr_gen(parser, (node)) parser 480 parse.c #define void_stmts(node) void_stmts_gen(parser, (node)) parser 482 parse.c #define reduce_nodes(n) reduce_nodes_gen(parser,(n)) parser 484 parse.c #define block_dup_check(n1,n2) block_dup_check_gen(parser,(n1),(n2)) parser 487 parse.c #define block_append(h,t) block_append_gen(parser,(h),(t)) parser 489 parse.c #define list_append(l,i) list_append_gen(parser,(l),(i)) parser 492 parse.c #define arg_append(h,t) arg_append_gen(parser,(h),(t)) parser 494 parse.c #define arg_concat(h,t) arg_concat_gen(parser,(h),(t)) parser 496 parse.c #define literal_concat(h,t) literal_concat_gen(parser,(h),(t)) parser 499 parse.c #define new_evstr(n) new_evstr_gen(parser,(n)) parser 501 parse.c #define evstr2dstr(n) evstr2dstr_gen(parser,(n)) parser 505 parse.c #define call_bin_op(recv,id,arg1) call_bin_op_gen(parser, (recv),(id),(arg1)) parser 507 parse.c #define call_uni_op(recv,id) call_uni_op_gen(parser, (recv),(id)) parser 510 parse.c #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 512 parse.c #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 517 parse.c #define ret_args(node) ret_args_gen(parser, (node)) parser 520 parse.c #define new_yield(node) new_yield_gen(parser, (node)) parser 522 parse.c #define dsym_node(node) dsym_node_gen(parser, (node)) parser 525 parse.c #define gettable(id) gettable_gen(parser,(id)) parser 527 parse.c #define assignable(id,node) assignable_gen(parser, (id), (node)) parser 530 parse.c #define aryset(node1,node2) aryset_gen(parser, (node1), (node2)) parser 532 parse.c #define attrset(node,q,id) attrset_gen(parser, (node), (q), (id)) parser 535 parse.c #define rb_backref_error(n) rb_backref_error_gen(parser,(n)) parser 537 parse.c #define node_assign(node1, node2) node_assign_gen(parser, (node1), (node2)) parser 541 parse.c #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 543 parse.c #define new_const_op_assign(lhs, op, rhs) new_const_op_assign_gen(parser, (lhs), (op), (rhs)) parser 548 parse.c #define new_hash(hash) new_hash_gen(parser, (hash)) parser 553 parse.c #define match_op(node1,node2) match_op_gen(parser, (node1), (node2)) parser 556 parse.c #define local_tbl() local_tbl_gen(parser) parser 561 parse.c #define reg_compile(str,options) reg_compile_gen(parser, (str), (options)) parser 563 parse.c #define reg_fragment_setenc(str,options) reg_fragment_setenc_gen(parser, (str), (options)) parser 565 parse.c #define reg_fragment_check(str,options) reg_fragment_check_gen(parser, (str), (options)) parser 567 parse.c #define reg_named_capture_assign(regexp) reg_named_capture_assign_gen(parser,(regexp)) parser 570 parse.c # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 598 parse.c #define assignable(lhs,node) assignable_gen(parser, (lhs)) parser 600 parse.c #define id_is_var(id) id_is_var_gen(parser, (id)) parser 606 parse.c #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 610 parse.c #define new_op_assign(lhs, op, rhs) new_op_assign_gen(parser, (lhs), (op), (rhs)) parser 615 parse.c #define formal_argument(id) formal_argument_gen(parser, (id)) parser 617 parse.c #define shadowing_lvar(name) shadowing_lvar_gen(parser, (name)) parser 619 parse.c #define new_bv(id) new_bv_gen(parser, (id)) parser 622 parse.c #define local_push(top) local_push_gen(parser,(top)) parser 624 parse.c #define local_pop() local_pop_gen(parser) parser 626 parse.c #define local_var(id) local_var_gen(parser, (id)) parser 628 parse.c #define arg_var(id) arg_var_gen(parser, (id)) parser 630 parse.c #define local_id(id) local_id_gen(parser, (id)) parser 632 parse.c #define internal_id() internal_id_gen(parser) parser 635 parse.c #define dyna_push() dyna_push_gen(parser) parser 637 parse.c #define dyna_pop(node) dyna_pop_gen(parser, (node)) parser 639 parse.c #define dyna_in_block() dyna_in_block_gen(parser) parser 642 parse.c #define dvar_defined(id) dvar_defined_gen(parser, (id), 0) parser 643 parse.c #define dvar_defined_get(id) dvar_defined_gen(parser, (id), 1) parser 645 parse.c #define dvar_curr(id) dvar_curr_gen(parser, (id)) parser 648 parse.c #define lvar_defined(id) lvar_defined_gen(parser, (id)) parser 688 parse.c #define ripper_error() ripper_error_gen(parser) parser 690 parse.c #define dispatch0(n) ripper_dispatch0(parser, TOKEN_PASTE(ripper_id_, n)) parser 691 parse.c #define dispatch1(n,a) ripper_dispatch1(parser, TOKEN_PASTE(ripper_id_, n), (a)) parser 692 parse.c #define dispatch2(n,a,b) ripper_dispatch2(parser, TOKEN_PASTE(ripper_id_, n), (a), (b)) parser 693 parse.c #define dispatch3(n,a,b,c) ripper_dispatch3(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c)) parser 694 parse.c #define dispatch4(n,a,b,c,d) ripper_dispatch4(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d)) parser 695 parse.c #define dispatch5(n,a,b,c,d,e) ripper_dispatch5(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e)) parser 696 parse.c #define dispatch7(n,a,b,c,d,e,f,g) ripper_dispatch7(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e), (f), (g)) parser 744 parse.c #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 751 parse.c #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 756 parse.c # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 795 parse.c # define WARN_ARGS(fmt,n) parser->value, id_warn, n, rb_usascii_str_new_lit(fmt) parser 798 parse.c # define WARNING_ARGS(fmt,n) parser->value, id_warning, n, rb_usascii_str_new_lit(fmt) parser 803 parse.c # define PARSER_ARG parser, parser 816 parse.c # define PARSER_ARG parser, parser 830 parse.c #define token_info_push(token) token_info_push_gen(parser, (token), rb_strlen_lit(token)) parser 831 parse.c #define token_info_pop(token) token_info_pop_gen(parser, (token), rb_strlen_lit(token)) parser 4287 parse.c parser_yyerror (parser, YY_("syntax error: cannot back up")); \ parser 4322 parse.c YYFPRINTF (parser, "%s ", Title); \ parser 4324 parse.c Type, Value, parser); \ parser 4325 parse.c YYFPRINTF (parser, "\n"); \ parser 4339 parse.c YYUSE (parser); parser 4357 parse.c YYFPRINTF (parser, "%s %s (", parser 4360 parse.c yy_symbol_value_print (yyoutput, yytype, yyvaluep, parser); parser 4361 parse.c YYFPRINTF (parser, ")"); parser 4372 parse.c YYFPRINTF (parser, "Stack now"); parser 4376 parse.c YYFPRINTF (parser, " %d", yybot); parser 4378 parse.c YYFPRINTF (parser, "\n"); parser 4384 parse.c yy_stack_print ((Bottom), (Top), parser); \ parser 4398 parse.c YYFPRINTF (parser, "Reducing stack by rule %d (line %lu):\n", parser 4403 parse.c YYFPRINTF (parser, " $%d = ", yyi + 1); parser 4407 parse.c , parser); parser 4408 parse.c YYFPRINTF (parser, "\n"); parser 4415 parse.c yy_reduce_print (yyssp, yyvsp, Rule, parser); \ parser 4678 parse.c YYUSE (parser); parser 4759 parse.c YYDPRINTF ((parser, "Starting parse\n")); parser 4832 parse.c YYDPRINTF ((parser, "Stack size increased to %lu\n", parser 4839 parse.c YYDPRINTF ((parser, "Entering state %d\n", yystate)); parser 4864 parse.c YYDPRINTF ((parser, "Reading a token: ")); parser 4865 parse.c yychar = yylex (&yylval, parser); parser 4871 parse.c YYDPRINTF ((parser, "Now at end of input.\n")); parser 9179 parse.c if (!literal_concat0(parser, lit, tail)) { parser 9854 parse.c (yyval.num) = parser->in_kwarg; parser 9855 parse.c parser->in_kwarg = 1; parser 9864 parse.c parser->in_kwarg = !!(yyvsp[-2].num); parser 10710 parse.c parser_yyerror (parser, YY_("syntax error")); parser 10737 parse.c parser_yyerror (parser, yymsgp); parser 10761 parse.c yytoken, &yylval, parser); parser 10817 parse.c yystos[yystate], yyvsp, parser); parser 10854 parse.c parser_yyerror (parser, YY_("memory exhausted")); parser 10866 parse.c yytoken, &yylval, parser); parser 10875 parse.c yystos[*yyssp], yyvsp, parser); parser 10893 parse.c # define yylval (*parser->lval) parser 10902 parse.c # define nextc() parser_nextc(parser) parser 10903 parse.c # define pushback(c) parser_pushback(parser, (c)) parser 10904 parse.c # define newtok() parser_newtok(parser) parser 10905 parse.c # define tokspace(n) parser_tokspace(parser, (n)) parser 10906 parse.c # define tokadd(c) parser_tokadd(parser, (c)) parser 10907 parse.c # define tok_hex(numlen) parser_tok_hex(parser, (numlen)) parser 10908 parse.c # define read_escape(flags,e) parser_read_escape(parser, (flags), (e)) parser 10909 parse.c # define tokadd_escape(e) parser_tokadd_escape(parser, (e)) parser 10910 parse.c # define regx_options() parser_regx_options(parser) parser 10911 parse.c # define tokadd_string(f,t,p,n,e) parser_tokadd_string(parser,(f),(t),(p),(n),(e)) parser 10912 parse.c # define parse_string(n) parser_parse_string(parser,(n)) parser 10913 parse.c # define tokaddmbc(c, enc) parser_tokaddmbc(parser, (c), (enc)) parser 10914 parse.c # define here_document(n) parser_here_document(parser,(n)) parser 10915 parse.c # define heredoc_identifier() parser_heredoc_identifier(parser) parser 10916 parse.c # define heredoc_restore(n) parser_heredoc_restore(parser,(n)) parser 10917 parse.c # define whole_match_p(e,l,i) parser_whole_match_p(parser,(e),(l),(i)) parser 10918 parse.c # define number_literal_suffix(f) parser_number_literal_suffix(parser, (f)) parser 10919 parse.c # define set_number_literal(v, t, f) parser_set_number_literal(parser, (v), (t), (f)) parser 10920 parse.c # define set_integer_literal(v, f) parser_set_integer_literal(parser, (v), (f)) parser 10966 parse.c if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); parser 10967 parse.c return lex_p > parser->tokp; parser 10973 parse.c VALUE str = STR_NEW(parser->tokp, lex_p - parser->tokp); parser 10974 parse.c VALUE rval = ripper_dispatch1(parser, ripper_token2eventid(t), str); parser 10975 parse.c ripper_flush(parser); parser 10982 parse.c if (!ripper_has_scan_event(parser)) return; parser 10983 parse.c yylval_rval = ripper_scan_event_val(parser, t); parser 10985 parse.c #define dispatch_scan_event(t) ripper_dispatch_scan_event(parser, t) parser 10991 parse.c const char *saved_tokp = parser->tokp; parser 10993 parse.c ruby_sourceline = parser->delayed_line; parser 10994 parse.c parser->tokp = lex_pbeg + parser->delayed_col; parser 10995 parse.c yylval_rval = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed); parser 10996 parse.c parser->delayed = Qnil; parser 10998 parse.c parser->tokp = saved_tokp; parser 11000 parse.c #define dispatch_delayed_token(t) ripper_dispatch_delayed_token(parser, t) parser 11001 parse.c #define has_delayed_token() (!NIL_P(parser->delayed)) parser 11011 parse.c #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc)) parser 11047 parse.c if (!parser->token_info_enabled) return; parser 11051 parse.c ptinfo->column = token_info_get_column(parser, t); parser 11052 parse.c ptinfo->nonspc = token_info_has_nonspaces(parser, t); parser 11053 parse.c ptinfo->next = parser->token_info; parser 11055 parse.c parser->token_info = ptinfo; parser 11062 parse.c token_info *ptinfo = parser->token_info; parser 11066 parse.c parser->token_info = ptinfo->next; parser 11068 parse.c if (parser->token_info_enabled && parser 11070 parse.c !token_info_has_nonspaces(parser, t) && parser 11071 parse.c token_info_get_column(parser, t) != ptinfo->column) { parser 11187 parse.c struct parser_params *parser = (struct parser_params *)arg; parser 11200 parse.c if (!e_option_supplied(parser)) { parser 11206 parse.c parser_prepare(parser); parser 11214 parse.c n = yyparse((void*)parser); parser 11224 parse.c if (parser->error_p) { parser 11225 parse.c VALUE mesg = parser->error_buffer; parser 11237 parse.c VALUE opt = parser->compile_option; parser 11251 parse.c return (NODE *)rb_suppress_tracing(yycompile0, (VALUE)parser); parser 11288 parse.c VALUE line = (*lex_gets)(parser, lex_input); parser 11309 parse.c struct parser_params *parser; parser 11312 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 11318 parse.c node = yycompile(parser, fname, line); parser 11383 parse.c struct parser_params *parser; parser 11386 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 11391 parse.c node = yycompile(parser, fname, start); parser 11435 parse.c #define lex_goto_eol(parser) ((parser)->lex.pcur = (parser)->lex.pend) parser 11448 parse.c if (parser->eofp) parser 11451 parse.c if (!lex_input || NIL_P(v = lex_getline(parser))) { parser 11452 parse.c parser->eofp = 1; parser 11453 parse.c lex_goto_eol(parser); parser 11456 parse.c parser->cr_seen = FALSE; parser 11459 parse.c if (parser->tokp < lex_pend) { parser 11461 parse.c parser->delayed = rb_str_buf_new(1024); parser 11462 parse.c rb_enc_associate(parser->delayed, current_enc); parser 11463 parse.c rb_str_buf_cat(parser->delayed, parser 11464 parse.c parser->tokp, lex_pend - parser->tokp); parser 11465 parse.c parser->delayed_line = ruby_sourceline; parser 11466 parse.c parser->delayed_col = (int)(parser->tokp - lex_pbeg); parser 11469 parse.c rb_str_buf_cat(parser->delayed, parser 11470 parse.c parser->tokp, lex_pend - parser->tokp); parser 11479 parse.c parser->line_count++; parser 11482 parse.c ripper_flush(parser); parser 11494 parse.c else if (!parser->cr_seen) { parser 11495 parse.c parser->cr_seen = TRUE; parser 11508 parse.c if (parser_nextline(parser)) return -1; parser 11512 parse.c c = parser_cr(parser, c); parser 11893 parse.c #define tokadd_mbchar(c) parser_tokadd_mbchar(parser, (c)) parser 11964 parse.c parser_update_heredoc_indent(parser, c); parser 12003 parse.c parser_tokadd_utf8(parser, &enc, 1, parser 12083 parse.c ptrdiff_t len = lex_p - parser->tokp; parser 12085 parse.c rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 12088 parse.c parser->tokp = lex_p; parser 12097 parse.c #define flush_string_content(enc) ripper_flush_string_content(parser, (enc)) parser 12190 parse.c int t = parser_peek_variable_name(parser); parser 12200 parse.c if (parser->eofp) parser 12205 parse.c if (parser->eofp) parser 12275 parse.c lex_goto_eol(parser); parser 12281 parse.c ripper_flush(parser); parser 12300 parse.c ripper_flush(parser); parser 12471 parse.c str = STR_NEW(parser->tokp, lex_pend - parser->tokp); parser 12472 parse.c ripper_dispatch1(parser, ripper_token2eventid(tHEREDOC_END), str); parser 12473 parse.c lex_goto_eol(parser); parser 12474 parse.c ripper_flush(parser); parser 12477 parse.c #define dispatch_heredoc_end() ripper_dispatch_heredoc_end(parser) parser 12504 parse.c rb_str_append(parser->delayed, str); parser 12506 parse.c else if ((len = lex_p - parser->tokp) > 0) { parser 12509 parse.c rb_str_coderange_scan_restartable(parser->tokp, lex_p, enc, &cr); parser 12516 parse.c rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 12520 parse.c lex_goto_eol(parser); parser 12550 parse.c while (p + i < pend && parser_update_heredoc_indent(parser, p[i])) parser 12560 parse.c lex_goto_eol(parser); parser 12579 parse.c int t = parser_peek_variable_name(parser); parser 12587 parse.c if (parser->eofp) goto error; parser 12598 parse.c lex_goto_eol(parser); parser 12628 parse.c #define arg_ambiguous(c) (arg_ambiguous_gen(parser, (c)), 1) parser 12710 parse.c parser->enc = enc; parser 12726 parse.c if (parser->line_count != (parser->has_shebang ? 2 : 1)) return 0; parser 12740 parse.c if (!comment_at_top(parser)) { parser 12743 parse.c parser_set_encode(parser, val); parser 12768 parse.c int b = parser_get_bool(parser, name, val); parser 12769 parse.c if (b >= 0) parser->token_info_enabled = b; parser 12777 parse.c if (parser->token_seen) { parser 12782 parse.c b = parser_get_bool(parser, name, val); parser 12785 parse.c if (!parser->compile_option) parser 12786 parse.c parser->compile_option = rb_obj_hide(rb_ident_hash_new()); parser 12787 parse.c rb_hash_aset(parser->compile_option, ID2SYM(rb_intern(name)), parser 12795 parse.c int b = parser_get_bool(parser, name, val); parser 12796 parse.c if (b >= 0) parser->past_scope_enabled = b; parser 12937 parse.c n = (*p->length)(parser, vbeg, n); parser 12940 parse.c (*p->func)(parser, p->name, RSTRING_PTR(val)); parser 12991 parse.c s = rb_str_new(beg, parser_encode_length(parser, beg, str - beg)); parser 12992 parse.c parser_set_encode(parser, RSTRING_PTR(s)); parser 13002 parse.c if (peek('!')) parser->has_shebang = 1; parser 13008 parse.c parser->enc = rb_utf8_encoding(); parser 13018 parse.c parser->enc = rb_enc_get(lex_lastline); parser 13020 parse.c parser->token_info_enabled = !compile_for_eval && RTEST(ruby_verbose); parser 13275 parse.c v = parse_rational(parser, tok(), toklen(), seen_point); parser 13350 parse.c c = parser_tokadd_utf8(parser, &enc, 0, 0, 0); parser 13594 parse.c set_yylval_node(NEW_NTH_REF(parse_numvar(parser))); parser 13612 parse.c if (tokadd_ident(parser, c)) return 0; parser 13614 parse.c tokenize_ident(parser, last_state); parser 13651 parse.c if (tokadd_ident(parser, c)) return 0; parser 13653 parse.c tokenize_ident(parser, last_state); parser 13763 parse.c ident = tokenize_ident(parser, last_state); parser 13781 parse.c int token_seen = parser->token_seen; parser 13811 parse.c parser->token_seen = TRUE; parser 13842 parse.c parser->token_seen = token_seen; parser 13844 parse.c if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { parser 13845 parse.c if (comment_at_top(parser)) { parser 13846 parse.c set_file_encoding(parser, lex_p, lex_pend); parser 13854 parse.c parser->token_seen = token_seen; parser 13862 parse.c if (!c && parser->in_kwarg) { parser 13886 parse.c lex_goto_eol(parser); parser 13889 parse.c parser->tokp = lex_p; parser 13968 parse.c lex_goto_eol(parser); parser 13971 parse.c lex_goto_eol(parser); parser 13987 parse.c lex_goto_eol(parser); parser 14091 parse.c return parse_qmark(parser); parser 14167 parse.c return parse_numeric(parser, '+'); parser 14227 parse.c return parse_numeric(parser, c); parser 14400 parse.c return parse_percent(parser, space_seen, last_state); parser 14403 parse.c return parse_gvar(parser, last_state); parser 14406 parse.c return parse_atmark(parser, last_state); parser 14411 parse.c parser->eofp = 1; parser 14415 parse.c lex_goto_eol(parser); parser 14433 parse.c return parse_ident(parser, c, cmd_state); parser 14441 parse.c parser->lval = lval; parser 14443 parse.c t = parser_yylex(parser); parser 14497 parse.c #define parser_warning(node, mesg) parser_warning(parser, (node), (mesg)) parser 14504 parse.c #define parser_warn(node, mesg) parser_warn(parser, (node), (mesg)) parser 14658 parse.c if (!literal_concat0(parser, lit, tail->nd_lit)) { parser 14673 parse.c if (!literal_concat0(parser, head->nd_lit, tail->nd_lit)) parser 14689 parse.c if (!literal_concat0(parser, lit, tail->nd_lit)) parser 14831 parse.c if (!in_defined && RTEST(ruby_verbose) && past_dvar_p(parser, id)) { parser 15063 parse.c shadowing_lvar_0(parser, name); parser 15076 parse.c if (!shadowing_lvar_0(parser, name)) return; parser 15485 parse.c if (!e_option_supplied(parser)) parser_warn(node, str); parser 15491 parse.c if (!e_option_supplied(parser)) parser_warning(node, str); parser 15535 parse.c warn_unless_e_option(parser, node, "integer literal in conditional range"); parser 15538 parse.c return cond0(parser, node); parser 15566 parse.c assign_in_cond(parser, node); parser 15577 parse.c warning_unless_e_option(parser, node, "regex literal in condition"); parser 15582 parse.c node->nd_1st = cond0(parser, node->nd_1st); parser 15583 parse.c node->nd_2nd = cond0(parser, node->nd_2nd); parser 15588 parse.c node->nd_beg = range_op(parser, node->nd_beg); parser 15589 parse.c node->nd_end = range_op(parser, node->nd_end); parser 15592 parse.c if (!e_option_supplied(parser)) { parser 15607 parse.c warn_unless_e_option(parser, node, "regex literal in condition"); parser 15623 parse.c return cond0(parser, node); parser 15630 parse.c cc = cond0(parser, cc); parser 15661 parse.c no_blockarg(parser, node); parser 15677 parse.c if (node) no_blockarg(parser, node); parser 15893 parse.c if (hash) hash = remove_duplicate_keys(parser, hash); parser 16015 parse.c (ifndef_ripper(compile_for_eval || e_option_supplied(parser))+0)) && parser 16030 parse.c warn_unused_var(parser, lvtbl); parser 16104 parse.c return rb_local_defined(id, parser->base_block); parser 16133 parse.c if (parser->past_scope_enabled) { parser 16148 parse.c warn_unused_var(parser, lvtbl); parser 16152 parse.c dyna_pop_vtable(parser, &lvtbl->args); parser 16153 parse.c dyna_pop_vtable(parser, &lvtbl->vars); parser 16160 parse.c dyna_pop_1(parser); parser 16167 parse.c dyna_pop_1(parser); parser 16201 parse.c return rb_dvar_defined(id, parser->base_block); parser 16269 parse.c struct parser_params* parser; parser 16279 parse.c struct parser_params* parser = arg->parser; parser 16305 parse.c arg.parser = parser; parser 16328 parse.c re = parser_reg_compile(parser, str, options); parser 16347 parse.c VALUE re = parser_reg_compile(parser, str, options); parser 16360 parse.c struct parser_params *parser; parser 16364 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16392 parse.c struct parser_params *parser; parser 16396 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16452 parse.c parser->delayed = Qnil; parser 16453 parse.c parser->result = Qnil; parser 16454 parse.c parser->parsing_thread = Qnil; parser 16456 parse.c parser->error_buffer = Qfalse; parser 16458 parse.c parser->debug_buffer = Qnil; parser 16459 parse.c parser->enc = rb_utf8_encoding(); parser 16470 parse.c struct parser_params *parser = (struct parser_params*)ptr; parser 16482 parse.c rb_gc_mark(parser->compile_option); parser 16483 parse.c rb_gc_mark(parser->error_buffer); parser 16485 parse.c rb_gc_mark(parser->delayed); parser 16486 parse.c rb_gc_mark(parser->value); parser 16487 parse.c rb_gc_mark(parser->result); parser 16488 parse.c rb_gc_mark(parser->parsing_thread); parser 16490 parse.c rb_gc_mark(parser->debug_buffer); parser 16492 parse.c rb_gc_mark((VALUE)parser->heap); parser 16499 parse.c struct parser_params *parser = (struct parser_params*)ptr; parser 16512 parse.c while ((ptinfo = parser->token_info) != 0) { parser 16513 parse.c parser->token_info = ptinfo->next; parser 16523 parse.c struct parser_params *parser = (struct parser_params*)ptr; parser 16525 parse.c size_t size = sizeof(*parser); parser 16562 parse.c VALUE parser = TypedData_Make_Struct(0, struct parser_params, parser 16565 parse.c return parser; parser 16571 parse.c struct parser_params *parser; parser 16573 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16574 parse.c parser->error_buffer = main ? Qfalse : Qnil; parser 16575 parse.c parser->base_block = base; parser 16600 parse.c struct parser_params *parser; parser 16602 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16603 parse.c return parser->error_p ? Qtrue : Qfalse; parser 16616 parse.c struct parser_params *parser; parser 16618 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16631 parse.c struct parser_params *parser; parser 16633 parse.c TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 16646 parse.c struct parser_params *parser; parser 16648 parse.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 16661 parse.c struct parser_params *parser; parser 16663 parse.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 16671 parse.c #define NEWHEAP() rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0) parser 16672 parse.c #define ADD2HEAP(n, c, p) ((parser->heap = (n))->u1.node = (p), \ parser 16701 parse.c if (ptr && (n = parser->heap) != NULL) { parser 16718 parse.c NODE **prev = &parser->heap, *n; parser 16736 parse.c VALUE mesg = parser->debug_buffer; parser 16738 parse.c if (NIL_P(mesg)) parser->debug_buffer = mesg = rb_str_new(0, 0); parser 16744 parse.c parser->debug_buffer = Qnil; parser 16753 parse.c parser->error_p = 1; parser 16755 parse.c parser->error_buffer = parser 16756 parse.c rb_syntax_error_append(parser->error_buffer, parser 16809 parse.c return rb_funcall(parser->value, mid, 0); parser 16816 parse.c return rb_funcall(parser->value, mid, 1, a); parser 16824 parse.c return rb_funcall(parser->value, mid, 2, a, b); parser 16833 parse.c return rb_funcall(parser->value, mid, 3, a, b, c); parser 16843 parse.c return rb_funcall(parser->value, mid, 4, a, b, c, d); parser 16854 parse.c return rb_funcall(parser->value, mid, 5, a, b, c, d, e); parser 16867 parse.c return rb_funcall(parser->value, mid, 7, a, b, c, d, e, f, g); parser 16982 parse.c parser->error_p = TRUE; parser 16994 parse.c rb_funcall(parser->value, rb_intern("compile_error"), 1, str); parser 16995 parse.c ripper_error_gen(parser); parser 17029 parse.c struct parser_params *parser; parser 17032 parse.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17042 parse.c parser->eofp = 0; parser 17051 parse.c parser_initialize(parser); parser 17061 parse.c struct parser_params *parser; parser 17069 parse.c struct parser_params *parser; parser 17071 parse.c TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 17072 parse.c parser_prepare(parser); parser 17073 parse.c ripper_yyparse((void*)parser); parser 17074 parse.c return parser->result; parser 17080 parse.c struct parser_params *parser; parser 17082 parse.c TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 17083 parse.c parser->parsing_thread = Qnil; parser 17096 parse.c struct parser_params *parser; parser 17098 parse.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17099 parse.c if (!ripper_initialized_p(parser)) { parser 17102 parse.c if (!NIL_P(parser->parsing_thread)) { parser 17103 parse.c if (parser->parsing_thread == rb_thread_current()) parser 17108 parse.c parser->parsing_thread = rb_thread_current(); parser 17111 parse.c return parser->result; parser 17124 parse.c struct parser_params *parser; parser 17127 parse.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17128 parse.c if (!ripper_initialized_p(parser)) { parser 17131 parse.c if (NIL_P(parser->parsing_thread)) return Qnil; parser 17132 parse.c col = parser->tokp - lex_pbeg; parser 17145 parse.c struct parser_params *parser; parser 17147 parse.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17148 parse.c if (!ripper_initialized_p(parser)) { parser 17164 parse.c struct parser_params *parser; parser 17166 parse.c TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 17167 parse.c if (!ripper_initialized_p(parser)) { parser 17170 parse.c if (NIL_P(parser->parsing_thread)) return Qnil; parser 43 parse.y #define YYMALLOC(size) rb_parser_malloc(parser, (size)) parser 44 parse.y #define YYREALLOC(ptr, size) rb_parser_realloc(parser, (ptr), (size)) parser 45 parse.y #define YYCALLOC(nelem, size) rb_parser_calloc(parser, (nelem), (size)) parser 46 parse.y #define YYFREE(ptr) rb_parser_free(parser, (ptr)) parser 50 parse.y rb_parser_printf(parser, "%d.%d-%d.%d", \ parser 347 parse.y #define yyerror(msg) parser_yyerror(parser, (msg)) parser 349 parse.y #define lex_strterm (parser->lex.strterm) parser 350 parse.y #define lex_state (parser->lex.state) parser 351 parse.y #define cond_stack (parser->cond_stack) parser 352 parse.y #define cmdarg_stack (parser->cmdarg_stack) parser 353 parse.y #define paren_nest (parser->lex.paren_nest) parser 354 parse.y #define lpar_beg (parser->lex.lpar_beg) parser 355 parse.y #define brace_nest (parser->lex.brace_nest) parser 356 parse.y #define in_single (parser->in_single) parser 357 parse.y #define in_def (parser->in_def) parser 358 parse.y #define in_main (parser->in_main) parser 359 parse.y #define in_defined (parser->in_defined) parser 360 parse.y #define tokenbuf (parser->tokenbuf) parser 361 parse.y #define tokidx (parser->tokidx) parser 362 parse.y #define toksiz (parser->toksiz) parser 363 parse.y #define tokline (parser->tokline) parser 364 parse.y #define lex_input (parser->lex.input) parser 365 parse.y #define lex_lastline (parser->lex.lastline) parser 366 parse.y #define lex_nextline (parser->lex.nextline) parser 367 parse.y #define lex_pbeg (parser->lex.pbeg) parser 368 parse.y #define lex_p (parser->lex.pcur) parser 369 parse.y #define lex_pend (parser->lex.pend) parser 370 parse.y #define heredoc_end (parser->heredoc_end) parser 371 parse.y #define heredoc_indent (parser->heredoc_indent) parser 372 parse.y #define heredoc_line_indent (parser->heredoc_line_indent) parser 373 parse.y #define command_start (parser->command_start) parser 374 parse.y #define deferred_nodes (parser->deferred_nodes) parser 375 parse.y #define lex_gets_ptr (parser->lex.gets_ptr) parser 376 parse.y #define lex_gets (parser->lex.gets) parser 377 parse.y #define lvtbl (parser->lvtbl) parser 378 parse.y #define ruby__end__seen (parser->ruby__end__seen) parser 379 parse.y #define ruby_sourceline (parser->ruby_sourceline) parser 380 parse.y #define ruby_sourcefile (parser->ruby_sourcefile) parser 381 parse.y #define ruby_sourcefile_string (parser->ruby_sourcefile_string) parser 382 parse.y #define current_enc (parser->enc) parser 383 parse.y #define current_arg (parser->cur_arg) parser 384 parse.y #define yydebug (parser->yydebug) parser 388 parse.y #define compile_for_eval (parser->base_block != 0 && !in_main) parser 389 parse.y #define ruby_eval_tree (parser->eval_tree) parser 390 parse.y #define ruby_eval_tree_begin (parser->eval_tree_begin) parser 391 parse.y #define ruby_debug_lines (parser->debug_lines) parser 392 parse.y #define ruby_coverage (parser->coverage) parser 405 parse.y #define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, (type), (a1), (a2), (a3)) parser 408 parse.y #define cond(node) cond_gen(parser, (node)) parser 410 parse.y #define new_if(cc,left,right) new_if_gen(parser, (cc), (left), (right)) parser 411 parse.y #define new_unless(cc,left,right) new_if_gen(parser, (cc), (right), (left)) parser 413 parse.y #define logop(type,node1,node2) logop_gen(parser, (type), (node1), (node2)) parser 422 parse.y #define value_expr(node) value_expr_gen(parser, (node) = remove_begin(node)) parser 423 parse.y #define void_expr0(node) void_expr_gen(parser, (node)) parser 426 parse.y #define void_stmts(node) void_stmts_gen(parser, (node)) parser 428 parse.y #define reduce_nodes(n) reduce_nodes_gen(parser,(n)) parser 430 parse.y #define block_dup_check(n1,n2) block_dup_check_gen(parser,(n1),(n2)) parser 433 parse.y #define block_append(h,t) block_append_gen(parser,(h),(t)) parser 435 parse.y #define list_append(l,i) list_append_gen(parser,(l),(i)) parser 438 parse.y #define arg_append(h,t) arg_append_gen(parser,(h),(t)) parser 440 parse.y #define arg_concat(h,t) arg_concat_gen(parser,(h),(t)) parser 442 parse.y #define literal_concat(h,t) literal_concat_gen(parser,(h),(t)) parser 445 parse.y #define new_evstr(n) new_evstr_gen(parser,(n)) parser 447 parse.y #define evstr2dstr(n) evstr2dstr_gen(parser,(n)) parser 451 parse.y #define call_bin_op(recv,id,arg1) call_bin_op_gen(parser, (recv),(id),(arg1)) parser 453 parse.y #define call_uni_op(recv,id) call_uni_op_gen(parser, (recv),(id)) parser 456 parse.y #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 458 parse.y #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 463 parse.y #define ret_args(node) ret_args_gen(parser, (node)) parser 466 parse.y #define new_yield(node) new_yield_gen(parser, (node)) parser 468 parse.y #define dsym_node(node) dsym_node_gen(parser, (node)) parser 471 parse.y #define gettable(id) gettable_gen(parser,(id)) parser 473 parse.y #define assignable(id,node) assignable_gen(parser, (id), (node)) parser 476 parse.y #define aryset(node1,node2) aryset_gen(parser, (node1), (node2)) parser 478 parse.y #define attrset(node,q,id) attrset_gen(parser, (node), (q), (id)) parser 481 parse.y #define rb_backref_error(n) rb_backref_error_gen(parser,(n)) parser 483 parse.y #define node_assign(node1, node2) node_assign_gen(parser, (node1), (node2)) parser 487 parse.y #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 489 parse.y #define new_const_op_assign(lhs, op, rhs) new_const_op_assign_gen(parser, (lhs), (op), (rhs)) parser 494 parse.y #define new_hash(hash) new_hash_gen(parser, (hash)) parser 499 parse.y #define match_op(node1,node2) match_op_gen(parser, (node1), (node2)) parser 502 parse.y #define local_tbl() local_tbl_gen(parser) parser 507 parse.y #define reg_compile(str,options) reg_compile_gen(parser, (str), (options)) parser 509 parse.y #define reg_fragment_setenc(str,options) reg_fragment_setenc_gen(parser, (str), (options)) parser 511 parse.y #define reg_fragment_check(str,options) reg_fragment_check_gen(parser, (str), (options)) parser 513 parse.y #define reg_named_capture_assign(regexp) reg_named_capture_assign_gen(parser,(regexp)) parser 516 parse.y # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 544 parse.y #define assignable(lhs,node) assignable_gen(parser, (lhs)) parser 546 parse.y #define id_is_var(id) id_is_var_gen(parser, (id)) parser 552 parse.y #define new_attr_op_assign(lhs, type, attr, op, rhs) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) parser 556 parse.y #define new_op_assign(lhs, op, rhs) new_op_assign_gen(parser, (lhs), (op), (rhs)) parser 561 parse.y #define formal_argument(id) formal_argument_gen(parser, (id)) parser 563 parse.y #define shadowing_lvar(name) shadowing_lvar_gen(parser, (name)) parser 565 parse.y #define new_bv(id) new_bv_gen(parser, (id)) parser 568 parse.y #define local_push(top) local_push_gen(parser,(top)) parser 570 parse.y #define local_pop() local_pop_gen(parser) parser 572 parse.y #define local_var(id) local_var_gen(parser, (id)) parser 574 parse.y #define arg_var(id) arg_var_gen(parser, (id)) parser 576 parse.y #define local_id(id) local_id_gen(parser, (id)) parser 578 parse.y #define internal_id() internal_id_gen(parser) parser 581 parse.y #define dyna_push() dyna_push_gen(parser) parser 583 parse.y #define dyna_pop(node) dyna_pop_gen(parser, (node)) parser 585 parse.y #define dyna_in_block() dyna_in_block_gen(parser) parser 588 parse.y #define dvar_defined(id) dvar_defined_gen(parser, (id), 0) parser 589 parse.y #define dvar_defined_get(id) dvar_defined_gen(parser, (id), 1) parser 591 parse.y #define dvar_curr(id) dvar_curr_gen(parser, (id)) parser 594 parse.y #define lvar_defined(id) lvar_defined_gen(parser, (id)) parser 634 parse.y #define ripper_error() ripper_error_gen(parser) parser 636 parse.y #define dispatch0(n) ripper_dispatch0(parser, TOKEN_PASTE(ripper_id_, n)) parser 637 parse.y #define dispatch1(n,a) ripper_dispatch1(parser, TOKEN_PASTE(ripper_id_, n), (a)) parser 638 parse.y #define dispatch2(n,a,b) ripper_dispatch2(parser, TOKEN_PASTE(ripper_id_, n), (a), (b)) parser 639 parse.y #define dispatch3(n,a,b,c) ripper_dispatch3(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c)) parser 640 parse.y #define dispatch4(n,a,b,c,d) ripper_dispatch4(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d)) parser 641 parse.y #define dispatch5(n,a,b,c,d,e) ripper_dispatch5(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e)) parser 642 parse.y #define dispatch7(n,a,b,c,d,e,f,g) ripper_dispatch7(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e), (f), (g)) parser 690 parse.y #define new_args(f,o,r,p,t) new_args_gen(parser, (f),(o),(r),(p),(t)) parser 697 parse.y #define new_args_tail(k,kr,b) new_args_tail_gen(parser, (k),(kr),(b)) parser 702 parse.y # define heredoc_dedent(str) parser_heredoc_dedent(parser, (str)) parser 741 parse.y # define WARN_ARGS(fmt,n) parser->value, id_warn, n, rb_usascii_str_new_lit(fmt) parser 744 parse.y # define WARNING_ARGS(fmt,n) parser->value, id_warning, n, rb_usascii_str_new_lit(fmt) parser 749 parse.y # define PARSER_ARG parser, parser 762 parse.y # define PARSER_ARG parser, parser 776 parse.y #define token_info_push(token) token_info_push_gen(parser, (token), rb_strlen_lit(token)) parser 777 parse.y #define token_info_pop(token) token_info_pop_gen(parser, (token), rb_strlen_lit(token)) parser 780 parse.y %pure-parser parser 781 parse.y %lex-param {struct parser_params *parser} parser 782 parse.y %parse-param {struct parser_params *parser} parser 4020 parse.y if (!literal_concat0(parser, lit, tail)) { parser 4549 parse.y $<num>$ = parser->in_kwarg; parser 4550 parse.y parser->in_kwarg = 1; parser 4555 parse.y parser->in_kwarg = !!$<num>1; parser 5220 parse.y # define yylval (*parser->lval) parser 5229 parse.y # define nextc() parser_nextc(parser) parser 5230 parse.y # define pushback(c) parser_pushback(parser, (c)) parser 5231 parse.y # define newtok() parser_newtok(parser) parser 5232 parse.y # define tokspace(n) parser_tokspace(parser, (n)) parser 5233 parse.y # define tokadd(c) parser_tokadd(parser, (c)) parser 5234 parse.y # define tok_hex(numlen) parser_tok_hex(parser, (numlen)) parser 5235 parse.y # define read_escape(flags,e) parser_read_escape(parser, (flags), (e)) parser 5236 parse.y # define tokadd_escape(e) parser_tokadd_escape(parser, (e)) parser 5237 parse.y # define regx_options() parser_regx_options(parser) parser 5238 parse.y # define tokadd_string(f,t,p,n,e) parser_tokadd_string(parser,(f),(t),(p),(n),(e)) parser 5239 parse.y # define parse_string(n) parser_parse_string(parser,(n)) parser 5240 parse.y # define tokaddmbc(c, enc) parser_tokaddmbc(parser, (c), (enc)) parser 5241 parse.y # define here_document(n) parser_here_document(parser,(n)) parser 5242 parse.y # define heredoc_identifier() parser_heredoc_identifier(parser) parser 5243 parse.y # define heredoc_restore(n) parser_heredoc_restore(parser,(n)) parser 5244 parse.y # define whole_match_p(e,l,i) parser_whole_match_p(parser,(e),(l),(i)) parser 5245 parse.y # define number_literal_suffix(f) parser_number_literal_suffix(parser, (f)) parser 5246 parse.y # define set_number_literal(v, t, f) parser_set_number_literal(parser, (v), (t), (f)) parser 5247 parse.y # define set_integer_literal(v, f) parser_set_integer_literal(parser, (v), (f)) parser 5293 parse.y if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp"); parser 5294 parse.y return lex_p > parser->tokp; parser 5300 parse.y VALUE str = STR_NEW(parser->tokp, lex_p - parser->tokp); parser 5301 parse.y VALUE rval = ripper_dispatch1(parser, ripper_token2eventid(t), str); parser 5302 parse.y ripper_flush(parser); parser 5309 parse.y if (!ripper_has_scan_event(parser)) return; parser 5310 parse.y yylval_rval = ripper_scan_event_val(parser, t); parser 5312 parse.y #define dispatch_scan_event(t) ripper_dispatch_scan_event(parser, t) parser 5318 parse.y const char *saved_tokp = parser->tokp; parser 5320 parse.y ruby_sourceline = parser->delayed_line; parser 5321 parse.y parser->tokp = lex_pbeg + parser->delayed_col; parser 5322 parse.y yylval_rval = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed); parser 5323 parse.y parser->delayed = Qnil; parser 5325 parse.y parser->tokp = saved_tokp; parser 5327 parse.y #define dispatch_delayed_token(t) ripper_dispatch_delayed_token(parser, t) parser 5328 parse.y #define has_delayed_token() (!NIL_P(parser->delayed)) parser 5338 parse.y #define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,current_enc)) parser 5374 parse.y if (!parser->token_info_enabled) return; parser 5378 parse.y ptinfo->column = token_info_get_column(parser, t); parser 5379 parse.y ptinfo->nonspc = token_info_has_nonspaces(parser, t); parser 5380 parse.y ptinfo->next = parser->token_info; parser 5382 parse.y parser->token_info = ptinfo; parser 5389 parse.y token_info *ptinfo = parser->token_info; parser 5393 parse.y parser->token_info = ptinfo->next; parser 5395 parse.y if (parser->token_info_enabled && parser 5397 parse.y !token_info_has_nonspaces(parser, t) && parser 5398 parse.y token_info_get_column(parser, t) != ptinfo->column) { parser 5514 parse.y struct parser_params *parser = (struct parser_params *)arg; parser 5527 parse.y if (!e_option_supplied(parser)) { parser 5533 parse.y parser_prepare(parser); parser 5541 parse.y n = yyparse((void*)parser); parser 5551 parse.y if (parser->error_p) { parser 5552 parse.y VALUE mesg = parser->error_buffer; parser 5564 parse.y VALUE opt = parser->compile_option; parser 5578 parse.y return (NODE *)rb_suppress_tracing(yycompile0, (VALUE)parser); parser 5615 parse.y VALUE line = (*lex_gets)(parser, lex_input); parser 5636 parse.y struct parser_params *parser; parser 5639 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 5645 parse.y node = yycompile(parser, fname, line); parser 5710 parse.y struct parser_params *parser; parser 5713 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 5718 parse.y node = yycompile(parser, fname, start); parser 5762 parse.y #define lex_goto_eol(parser) ((parser)->lex.pcur = (parser)->lex.pend) parser 5775 parse.y if (parser->eofp) parser 5778 parse.y if (!lex_input || NIL_P(v = lex_getline(parser))) { parser 5779 parse.y parser->eofp = 1; parser 5780 parse.y lex_goto_eol(parser); parser 5783 parse.y parser->cr_seen = FALSE; parser 5786 parse.y if (parser->tokp < lex_pend) { parser 5788 parse.y parser->delayed = rb_str_buf_new(1024); parser 5789 parse.y rb_enc_associate(parser->delayed, current_enc); parser 5790 parse.y rb_str_buf_cat(parser->delayed, parser 5791 parse.y parser->tokp, lex_pend - parser->tokp); parser 5792 parse.y parser->delayed_line = ruby_sourceline; parser 5793 parse.y parser->delayed_col = (int)(parser->tokp - lex_pbeg); parser 5796 parse.y rb_str_buf_cat(parser->delayed, parser 5797 parse.y parser->tokp, lex_pend - parser->tokp); parser 5806 parse.y parser->line_count++; parser 5809 parse.y ripper_flush(parser); parser 5821 parse.y else if (!parser->cr_seen) { parser 5822 parse.y parser->cr_seen = TRUE; parser 5835 parse.y if (parser_nextline(parser)) return -1; parser 5839 parse.y c = parser_cr(parser, c); parser 6220 parse.y #define tokadd_mbchar(c) parser_tokadd_mbchar(parser, (c)) parser 6291 parse.y parser_update_heredoc_indent(parser, c); parser 6330 parse.y parser_tokadd_utf8(parser, &enc, 1, parser 6410 parse.y ptrdiff_t len = lex_p - parser->tokp; parser 6412 parse.y rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 6415 parse.y parser->tokp = lex_p; parser 6424 parse.y #define flush_string_content(enc) ripper_flush_string_content(parser, (enc)) parser 6517 parse.y int t = parser_peek_variable_name(parser); parser 6527 parse.y if (parser->eofp) parser 6532 parse.y if (parser->eofp) parser 6602 parse.y lex_goto_eol(parser); parser 6608 parse.y ripper_flush(parser); parser 6627 parse.y ripper_flush(parser); parser 6798 parse.y str = STR_NEW(parser->tokp, lex_pend - parser->tokp); parser 6799 parse.y ripper_dispatch1(parser, ripper_token2eventid(tHEREDOC_END), str); parser 6800 parse.y lex_goto_eol(parser); parser 6801 parse.y ripper_flush(parser); parser 6804 parse.y #define dispatch_heredoc_end() ripper_dispatch_heredoc_end(parser) parser 6831 parse.y rb_str_append(parser->delayed, str); parser 6833 parse.y else if ((len = lex_p - parser->tokp) > 0) { parser 6836 parse.y rb_str_coderange_scan_restartable(parser->tokp, lex_p, enc, &cr); parser 6843 parse.y rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc); parser 6847 parse.y lex_goto_eol(parser); parser 6877 parse.y while (p + i < pend && parser_update_heredoc_indent(parser, p[i])) parser 6887 parse.y lex_goto_eol(parser); parser 6906 parse.y int t = parser_peek_variable_name(parser); parser 6914 parse.y if (parser->eofp) goto error; parser 6925 parse.y lex_goto_eol(parser); parser 6955 parse.y #define arg_ambiguous(c) (arg_ambiguous_gen(parser, (c)), 1) parser 7037 parse.y parser->enc = enc; parser 7053 parse.y if (parser->line_count != (parser->has_shebang ? 2 : 1)) return 0; parser 7067 parse.y if (!comment_at_top(parser)) { parser 7070 parse.y parser_set_encode(parser, val); parser 7095 parse.y int b = parser_get_bool(parser, name, val); parser 7096 parse.y if (b >= 0) parser->token_info_enabled = b; parser 7104 parse.y if (parser->token_seen) { parser 7109 parse.y b = parser_get_bool(parser, name, val); parser 7112 parse.y if (!parser->compile_option) parser 7113 parse.y parser->compile_option = rb_obj_hide(rb_ident_hash_new()); parser 7114 parse.y rb_hash_aset(parser->compile_option, ID2SYM(rb_intern(name)), parser 7122 parse.y int b = parser_get_bool(parser, name, val); parser 7123 parse.y if (b >= 0) parser->past_scope_enabled = b; parser 7264 parse.y n = (*p->length)(parser, vbeg, n); parser 7267 parse.y (*p->func)(parser, p->name, RSTRING_PTR(val)); parser 7318 parse.y s = rb_str_new(beg, parser_encode_length(parser, beg, str - beg)); parser 7319 parse.y parser_set_encode(parser, RSTRING_PTR(s)); parser 7329 parse.y if (peek('!')) parser->has_shebang = 1; parser 7335 parse.y parser->enc = rb_utf8_encoding(); parser 7345 parse.y parser->enc = rb_enc_get(lex_lastline); parser 7347 parse.y parser->token_info_enabled = !compile_for_eval && RTEST(ruby_verbose); parser 7602 parse.y v = parse_rational(parser, tok(), toklen(), seen_point); parser 7677 parse.y c = parser_tokadd_utf8(parser, &enc, 0, 0, 0); parser 7921 parse.y set_yylval_node(NEW_NTH_REF(parse_numvar(parser))); parser 7939 parse.y if (tokadd_ident(parser, c)) return 0; parser 7941 parse.y tokenize_ident(parser, last_state); parser 7978 parse.y if (tokadd_ident(parser, c)) return 0; parser 7980 parse.y tokenize_ident(parser, last_state); parser 8090 parse.y ident = tokenize_ident(parser, last_state); parser 8108 parse.y int token_seen = parser->token_seen; parser 8138 parse.y parser->token_seen = TRUE; parser 8169 parse.y parser->token_seen = token_seen; parser 8171 parse.y if (!parser_magic_comment(parser, lex_p, lex_pend - lex_p)) { parser 8172 parse.y if (comment_at_top(parser)) { parser 8173 parse.y set_file_encoding(parser, lex_p, lex_pend); parser 8181 parse.y parser->token_seen = token_seen; parser 8189 parse.y if (!c && parser->in_kwarg) { parser 8213 parse.y lex_goto_eol(parser); parser 8216 parse.y parser->tokp = lex_p; parser 8295 parse.y lex_goto_eol(parser); parser 8298 parse.y lex_goto_eol(parser); parser 8314 parse.y lex_goto_eol(parser); parser 8418 parse.y return parse_qmark(parser); parser 8494 parse.y return parse_numeric(parser, '+'); parser 8554 parse.y return parse_numeric(parser, c); parser 8727 parse.y return parse_percent(parser, space_seen, last_state); parser 8730 parse.y return parse_gvar(parser, last_state); parser 8733 parse.y return parse_atmark(parser, last_state); parser 8738 parse.y parser->eofp = 1; parser 8742 parse.y lex_goto_eol(parser); parser 8760 parse.y return parse_ident(parser, c, cmd_state); parser 8768 parse.y parser->lval = lval; parser 8770 parse.y t = parser_yylex(parser); parser 8824 parse.y #define parser_warning(node, mesg) parser_warning(parser, (node), (mesg)) parser 8831 parse.y #define parser_warn(node, mesg) parser_warn(parser, (node), (mesg)) parser 8985 parse.y if (!literal_concat0(parser, lit, tail->nd_lit)) { parser 9000 parse.y if (!literal_concat0(parser, head->nd_lit, tail->nd_lit)) parser 9016 parse.y if (!literal_concat0(parser, lit, tail->nd_lit)) parser 9158 parse.y if (!in_defined && RTEST(ruby_verbose) && past_dvar_p(parser, id)) { parser 9390 parse.y shadowing_lvar_0(parser, name); parser 9403 parse.y if (!shadowing_lvar_0(parser, name)) return; parser 9812 parse.y if (!e_option_supplied(parser)) parser_warn(node, str); parser 9818 parse.y if (!e_option_supplied(parser)) parser_warning(node, str); parser 9862 parse.y warn_unless_e_option(parser, node, "integer literal in conditional range"); parser 9865 parse.y return cond0(parser, node); parser 9893 parse.y assign_in_cond(parser, node); parser 9904 parse.y warning_unless_e_option(parser, node, "regex literal in condition"); parser 9909 parse.y node->nd_1st = cond0(parser, node->nd_1st); parser 9910 parse.y node->nd_2nd = cond0(parser, node->nd_2nd); parser 9915 parse.y node->nd_beg = range_op(parser, node->nd_beg); parser 9916 parse.y node->nd_end = range_op(parser, node->nd_end); parser 9919 parse.y if (!e_option_supplied(parser)) { parser 9934 parse.y warn_unless_e_option(parser, node, "regex literal in condition"); parser 9950 parse.y return cond0(parser, node); parser 9957 parse.y cc = cond0(parser, cc); parser 9988 parse.y no_blockarg(parser, node); parser 10004 parse.y if (node) no_blockarg(parser, node); parser 10220 parse.y if (hash) hash = remove_duplicate_keys(parser, hash); parser 10342 parse.y (ifndef_ripper(compile_for_eval || e_option_supplied(parser))+0)) && parser 10357 parse.y warn_unused_var(parser, lvtbl); parser 10431 parse.y return rb_local_defined(id, parser->base_block); parser 10460 parse.y if (parser->past_scope_enabled) { parser 10475 parse.y warn_unused_var(parser, lvtbl); parser 10479 parse.y dyna_pop_vtable(parser, &lvtbl->args); parser 10480 parse.y dyna_pop_vtable(parser, &lvtbl->vars); parser 10487 parse.y dyna_pop_1(parser); parser 10494 parse.y dyna_pop_1(parser); parser 10528 parse.y return rb_dvar_defined(id, parser->base_block); parser 10596 parse.y struct parser_params* parser; parser 10606 parse.y struct parser_params* parser = arg->parser; parser 10632 parse.y arg.parser = parser; parser 10655 parse.y re = parser_reg_compile(parser, str, options); parser 10674 parse.y VALUE re = parser_reg_compile(parser, str, options); parser 10687 parse.y struct parser_params *parser; parser 10691 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10719 parse.y struct parser_params *parser; parser 10723 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10779 parse.y parser->delayed = Qnil; parser 10780 parse.y parser->result = Qnil; parser 10781 parse.y parser->parsing_thread = Qnil; parser 10783 parse.y parser->error_buffer = Qfalse; parser 10785 parse.y parser->debug_buffer = Qnil; parser 10786 parse.y parser->enc = rb_utf8_encoding(); parser 10797 parse.y struct parser_params *parser = (struct parser_params*)ptr; parser 10809 parse.y rb_gc_mark(parser->compile_option); parser 10810 parse.y rb_gc_mark(parser->error_buffer); parser 10812 parse.y rb_gc_mark(parser->delayed); parser 10813 parse.y rb_gc_mark(parser->value); parser 10814 parse.y rb_gc_mark(parser->result); parser 10815 parse.y rb_gc_mark(parser->parsing_thread); parser 10817 parse.y rb_gc_mark(parser->debug_buffer); parser 10819 parse.y rb_gc_mark((VALUE)parser->heap); parser 10826 parse.y struct parser_params *parser = (struct parser_params*)ptr; parser 10839 parse.y while ((ptinfo = parser->token_info) != 0) { parser 10840 parse.y parser->token_info = ptinfo->next; parser 10850 parse.y struct parser_params *parser = (struct parser_params*)ptr; parser 10852 parse.y size_t size = sizeof(*parser); parser 10889 parse.y VALUE parser = TypedData_Make_Struct(0, struct parser_params, parser 10892 parse.y return parser; parser 10898 parse.y struct parser_params *parser; parser 10900 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10901 parse.y parser->error_buffer = main ? Qfalse : Qnil; parser 10902 parse.y parser->base_block = base; parser 10927 parse.y struct parser_params *parser; parser 10929 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10930 parse.y return parser->error_p ? Qtrue : Qfalse; parser 10943 parse.y struct parser_params *parser; parser 10945 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10958 parse.y struct parser_params *parser; parser 10960 parse.y TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser); parser 10973 parse.y struct parser_params *parser; parser 10975 parse.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 10988 parse.y struct parser_params *parser; parser 10990 parse.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 10998 parse.y #define NEWHEAP() rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parser->heap, 0) parser 10999 parse.y #define ADD2HEAP(n, c, p) ((parser->heap = (n))->u1.node = (p), \ parser 11028 parse.y if (ptr && (n = parser->heap) != NULL) { parser 11045 parse.y NODE **prev = &parser->heap, *n; parser 11063 parse.y VALUE mesg = parser->debug_buffer; parser 11065 parse.y if (NIL_P(mesg)) parser->debug_buffer = mesg = rb_str_new(0, 0); parser 11071 parse.y parser->debug_buffer = Qnil; parser 11080 parse.y parser->error_p = 1; parser 11082 parse.y parser->error_buffer = parser 11083 parse.y rb_syntax_error_append(parser->error_buffer, parser 11136 parse.y return rb_funcall(parser->value, mid, 0); parser 11143 parse.y return rb_funcall(parser->value, mid, 1, a); parser 11151 parse.y return rb_funcall(parser->value, mid, 2, a, b); parser 11160 parse.y return rb_funcall(parser->value, mid, 3, a, b, c); parser 11170 parse.y return rb_funcall(parser->value, mid, 4, a, b, c, d); parser 11181 parse.y return rb_funcall(parser->value, mid, 5, a, b, c, d, e); parser 11194 parse.y return rb_funcall(parser->value, mid, 7, a, b, c, d, e, f, g); parser 11309 parse.y parser->error_p = TRUE; parser 11321 parse.y rb_funcall(parser->value, rb_intern("compile_error"), 1, str); parser 11322 parse.y ripper_error_gen(parser); parser 11356 parse.y struct parser_params *parser; parser 11359 parse.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11369 parse.y parser->eofp = 0; parser 11378 parse.y parser_initialize(parser); parser 11388 parse.y struct parser_params *parser; parser 11396 parse.y struct parser_params *parser; parser 11398 parse.y TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 11399 parse.y parser_prepare(parser); parser 11400 parse.y ripper_yyparse((void*)parser); parser 11401 parse.y return parser->result; parser 11407 parse.y struct parser_params *parser; parser 11409 parse.y TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser); parser 11410 parse.y parser->parsing_thread = Qnil; parser 11423 parse.y struct parser_params *parser; parser 11425 parse.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11426 parse.y if (!ripper_initialized_p(parser)) { parser 11429 parse.y if (!NIL_P(parser->parsing_thread)) { parser 11430 parse.y if (parser->parsing_thread == rb_thread_current()) parser 11435 parse.y parser->parsing_thread = rb_thread_current(); parser 11438 parse.y return parser->result; parser 11451 parse.y struct parser_params *parser; parser 11454 parse.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11455 parse.y if (!ripper_initialized_p(parser)) { parser 11458 parse.y if (NIL_P(parser->parsing_thread)) return Qnil; parser 11459 parse.y col = parser->tokp - lex_pbeg; parser 11472 parse.y struct parser_params *parser; parser 11474 parse.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11475 parse.y if (!ripper_initialized_p(parser)) { parser 11491 parse.y struct parser_params *parser; parser 11493 parse.y TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser); parser 11494 parse.y if (!ripper_initialized_p(parser)) { parser 11497 parse.y if (NIL_P(parser->parsing_thread)) return Qnil; parser 1440 ruby.c VALUE parser; parser 1532 ruby.c parser = rb_parser_new(); parser 1534 ruby.c rb_parser_set_yydebug(parser, Qtrue); parser 1638 ruby.c rb_parser_set_context(parser, base_block, TRUE); parser 1639 ruby.c tree = rb_parser_compile_string(parser, opt->script, opt->e_script, 1); parser 1647 ruby.c rb_parser_set_context(parser, base_block, TRUE); parser 1648 ruby.c tree = load_file(parser, opt->script_name, 1, opt); parser 1681 ruby.c tree = rb_parser_append_print(parser, tree); parser 1684 ruby.c tree = rb_parser_while_loop(parser, tree, opt->do_line, opt->do_split); parser 1734 ruby.c VALUE parser; parser 1746 ruby.c VALUE parser = argp->parser; parser 1856 ruby.c return (VALUE)rb_parser_compile_string_path(parser, orig_fname, f, line_start); parser 1859 ruby.c tree = rb_parser_compile_file_path(parser, orig_fname, f, line_start); parser 1860 ruby.c rb_funcall(f, set_encoding, 1, rb_parser_encoding(parser)); parser 1861 ruby.c if (script && rb_parser_end_seen_p(parser)) argp->script = script; parser 1964 ruby.c arg.parser = parser; parser 1994 ruby.c return load_file(parser, fname_v, 0, cmdline_options_init(&opt));