Changeset 1189 for code/branches/console/src/core/CommandExecutor.cc
- Timestamp:
- Apr 26, 2008, 2:56:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/CommandExecutor.cc
r1188 r1189 376 376 bool CommandExecutor::execute(const std::string& command) 377 377 { 378 std::cout << "CE_execute: " << command << "\n";379 378 if ((CommandExecutor::getEvaluation().processedCommand_ != command) || (CommandExecutor::getEvaluation().state_ == CS_Uninitialized)) 380 {std::cout << "CE_execute->parse\n"; 381 CommandExecutor::parse(command);} 379 CommandExecutor::parse(command); 382 380 383 381 return CommandExecutor::execute(CommandExecutor::getEvaluation()); … … 387 385 bool CommandExecutor::execute(const CommandEvaluation& evaluation) 388 386 { 387 std::cout << "CE_execute: " << evaluation.processedCommand_ << "\n"; 389 388 SubString tokens(evaluation.processedCommand_, " ", SubString::WhiteSpaces, false, '\\', false, '"', false, '(', ')', false, '\0'); 390 389 … … 637 636 { 638 637 CommandExecutor::parse(command, true); 639 std::cout << "1_1: " << command << std::endl; 638 640 639 if (CommandExecutor::getEvaluation().tokens_.size() > 0) 641 640 { … … 646 645 CommandExecutor::getEvaluation().tokens_.append(SubString(lastToken, " ")); 647 646 } 648 std::cout << "1_2: " << CommandExecutor::getEvaluation().tokens_[CommandExecutor::getEvaluation().tokens_.size() - 1] << std::endl; 647 649 648 CommandExecutor::getEvaluation().evaluateParams(); 650 649 return CommandExecutor::getEvaluation();
Note: See TracChangeset
for help on using the changeset viewer.