Using the examples in our tables , we ll build a word - counting program )使用这个表中的例子,我们就可以编一个字数统计的程序了。
Continuing with our word - counting program , here are the rules for matching tokens )继续看我们的字数统计程序,下面是标记匹配的规则。
So , to get back to the word - counting lex program , let s look at the composition of the various program sections 那么,回到字数统计的lex程序,让我们看一下程序不同段的构成。
We will declare an integer variable here for our word - counting program that holds the number of words counted by the program 这里我们将为字数统计程序声明一个整型变量,来保存程序统计出来的字数。
Word count displays the number of words in a document , as well as the number of characters , lines , paragraphs , and pages 字数统计可以使用“字数统计”命令来显示文档中的字数、字符数、行数、段落数和页数。