| 576 | } |
| 577 | |
| 578 | bool gsoner::check_include(void) |
| 579 | { |
| 580 | std::string tmp = codes_.substr(pos_, strlen("#include")); |
| 581 | if (tmp == "#include") { |
| 582 | pos_ += (int) strlen("#include"); |
| 583 | skip_space_comment(); |
| 584 | char sym = codes_[pos_++]; |
| 585 | if(sym == '<') { |
| 586 | sym = '>'; |
| 587 | } |
| 588 | std::string include; |
| 589 | while (codes_[pos_] != sym) { |
| 590 | include.push_back(codes_[pos_]); |
| 591 | pos_++; |
| 592 | } |
| 593 | pos_++; |
| 594 | includes_.push_back(include); |
| 595 | |
| 596 | return true; |
| 597 | } |
| 598 | |
| 599 | return false; |
| 600 | } |
| 601 | |
| 602 | bool gsoner::check_comment(void) |
| 603 | { |