本文整理汇总了C++中Toker::des方法的典型用法代码示例。如果您正苦于以下问题:C++ Toker::des方法的具体用法?C++ Toker::des怎么用?C++ Toker::des使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Toker
的用法示例。
在下文中一共展示了Toker::des方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main()
{
std::cout << "-----------------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 1 -" << " " << " I have used Microsoft Visual Studio C++ Console Projects" << std::endl;
std::cout << "-------------------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 2 -" << " " << " I have used <iostream> for all I/O and new and delete for heap based management " << std::endl;
std::cout << "----------------------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 3 -" << " " << " I have provided Tokenzier Package, SemiExp package whose .ccp implements an interface named iTokCollection.h" << std::endl;
std::cout << "------------------------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 4 -" << " " << "Tokenizing Test File into Alphanumeric, Punctuator, Special One Character, Special Two Character, C Style Comments, C++ Comments and Quoted Strings" << std::endl;
std::cout << "-------------------------------------------------------------------------------------------------------------\n";
Toker toker;
int f = dealTokenizer(toker);
toker.des();
std::cout << "------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 5 - " << " " << "The getTok() method prodduces one token for each call to it" << std::endl;
std::cout << "-------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 6 -" << " " << "SemiExp package produces set of tokens by repeatdely calling getTok() until we run into a termination condition " << std::endl;
std::cout << "--------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 7 - " << " " << "SemiExpressions are terminated on },{,; and : public, :private and :protected " << std::endl;
std::cout << "---------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 8 - " << " " << "Folding for" << std::endl;
std::cout << "----------------------------------------------------------------------------------------------\n";
std::cout << "Output for 5,6,7,8 with same input file passed to Tokennizer with the Comment toggle turned off" << std::endl;
int g = dealSemiExpressions();
std::cout << "\n------------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 9 -" << " " << " All the virtual methods in the iTokCollection interface have been implemented by the SemiExp Class " << std::endl;
std::cout << "------------------------------------------------------------------------------------------------\n";
std::cout << "Requirement 10 -" << " " << " TestExecutive which illustrates all possible test cases" << std::endl;
std::cout << "---------------------------------------------------------------------------------------------------\n";
std::cout << "Please enter any character to continue " << std::endl;
std::getchar();
}