reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
420 tok = isl_token_new(s->ctx, line, col, old_line != line); 421 if (!tok) 423 tok->type = (enum isl_token_type)c; 424 return tok; 429 tok = isl_token_new(s->ctx, line, col, old_line != line); 430 if (!tok) 432 tok->u.s = strdup("->"); 433 tok->type = ISL_TOKEN_TO; 434 return tok; 439 tok = isl_token_new(s->ctx, line, col, old_line != line); 440 if (!tok) 442 tok->type = (enum isl_token_type) '-'; 443 return tok; 448 tok = isl_token_new(s->ctx, line, col, old_line != line); 449 if (!tok) 451 tok->type = ISL_TOKEN_VALUE; 452 isl_int_init(tok->u.v); 461 isl_int_read(tok->u.v, s->buffer); 462 if (minus && isl_int_is_zero(tok->u.v)) { 463 tok->col++; 464 tok->on_new_line = 0; 465 isl_stream_push_token(s, tok); 466 tok = isl_token_new(s->ctx, line, col, old_line != line); 467 if (!tok) 469 tok->type = (enum isl_token_type) '-'; 471 return tok; 474 tok = isl_token_new(s->ctx, line, col, old_line != line); 475 if (!tok) 488 tok->type = check_keywords(s); 489 if (tok->type != ISL_TOKEN_IDENT) 490 tok->is_keyword = 1; 491 tok->u.s = strdup(s->buffer); 492 if (!tok->u.s) 494 return tok; 497 tok = isl_token_new(s->ctx, line, col, old_line != line); 498 if (!tok) 500 tok->type = ISL_TOKEN_STRING; 501 tok->u.s = NULL; 509 tok->u.s = strdup(s->buffer); 510 return tok; 514 tok = isl_token_new(s->ctx, line, col, old_line != line); 515 if (!tok) 518 tok->u.s = strdup("=="); 519 tok->type = ISL_TOKEN_EQ_EQ; 520 return tok; 524 tok->type = (enum isl_token_type) '='; 525 return tok; 529 tok = isl_token_new(s->ctx, line, col, old_line != line); 530 if (!tok) 533 tok->u.s = strdup(":="); 534 tok->type = ISL_TOKEN_DEF; 535 return tok; 539 tok->type = (enum isl_token_type) ':'; 540 return tok; 544 tok = isl_token_new(s->ctx, line, col, old_line != line); 545 if (!tok) 548 tok->u.s = strdup(">="); 549 tok->type = ISL_TOKEN_GE; 550 return tok; 553 tok->u.s = strdup(">>="); 554 tok->type = ISL_TOKEN_LEX_GE; 555 return tok; 557 tok->u.s = strdup(">>"); 558 tok->type = ISL_TOKEN_LEX_GT; 560 tok->u.s = strdup(">"); 561 tok->type = ISL_TOKEN_GT; 565 return tok; 569 tok = isl_token_new(s->ctx, line, col, old_line != line); 570 if (!tok) 573 tok->u.s = strdup("<="); 574 tok->type = ISL_TOKEN_LE; 575 return tok; 578 tok->u.s = strdup("<<="); 579 tok->type = ISL_TOKEN_LEX_LE; 580 return tok; 582 tok->u.s = strdup("<<"); 583 tok->type = ISL_TOKEN_LEX_LT; 585 tok->u.s = strdup("<"); 586 tok->type = ISL_TOKEN_LT; 590 return tok; 593 tok = isl_token_new(s->ctx, line, col, old_line != line); 594 if (!tok) 596 tok->type = ISL_TOKEN_AND; 598 tok->u.s = strdup("&"); 601 tok->u.s = strdup("&&"); 602 return tok; 605 tok = isl_token_new(s->ctx, line, col, old_line != line); 606 if (!tok) 608 tok->type = ISL_TOKEN_OR; 610 tok->u.s = strdup("|"); 613 tok->u.s = strdup("||"); 614 return tok; 617 tok = isl_token_new(s->ctx, line, col, old_line != line); 618 if (!tok) 621 tok->type = (enum isl_token_type) '/'; 624 tok->u.s = strdup("/\\"); 625 tok->type = ISL_TOKEN_AND; 627 return tok; 630 tok = isl_token_new(s->ctx, line, col, old_line != line); 631 if (!tok) 634 tok->type = (enum isl_token_type) '\\'; 637 tok->u.s = strdup("\\/"); 638 tok->type = ISL_TOKEN_OR; 640 return tok; 643 tok = isl_token_new(s->ctx, line, col, old_line != line); 644 if (!tok) 647 tok->u.s = strdup("!="); 648 tok->type = ISL_TOKEN_NE; 649 return tok; 651 tok->type = ISL_TOKEN_NOT; 652 tok->u.s = strdup("!"); 656 return tok; 659 tok = isl_token_new(s->ctx, line, col, old_line != line); 660 if (!tok) 662 tok->type = ISL_TOKEN_UNKNOWN; 663 return tok; 665 isl_token_free(tok);