Description: c语言编写的词法分析器 可以用于PASCAL语言-c language prepared by the lexical analyzer can be used for language PASCAL Platform: |
Size: 3646 |
Author:李雪莹 |
Hits:
Description: c语言编写的词法分析器 可以用于PASCAL语言-c language prepared by the lexical analyzer can be used for language PASCAL Platform: |
Size: 3072 |
Author:李雪莹 |
Hits:
Description: 内容:C++源代码单词扫描程序(词法分析)
功能:
(1)C++源代码扫描程序识别C++记号。
C++语言包含了几种类型的记号:标识符,关键字,数(包括整数、浮点数),字符串、注释、特殊符号(分界符)和运算符号等。
(2)打开一个C++源文件,打印出所有以上的记号。
(3)应用程序应为Windows界面。
-Content: C++ Source code word scanner (lexical analysis) functions: (1) C++ Source code scanner to identify C++ Mark. C++ Language contains several types of marks: identifiers, keywords, a few (including integer, floating point), strings, notes, special symbols (at boundaries), and symbols, such as computing. (2) Open a C++ Source file, print out all the above marks. (3) applications for Windows interface. Platform: |
Size: 45056 |
Author:sky |
Hits:
Description: 简单源程序的词法分析程序的C语言实现,输出二元式,保存在外部文件-Simple source of the lexical analysis of C language procedures realize, the output of binary type, stored in an external file Platform: |
Size: 413696 |
Author:李勇 |
Hits:
Description: 设计一个词法扫描器。词法扫描器的功能是输入源程序,输出单词符号。写出关键字集合和程序流程图。例如源程序为C语言。输入如下一段:
main() {
int a,b
a = 10
b = a + 20
}
输出如图:
(2,”main”)
(5,”(“)
(5,”)“)
(5,”{“)
(1,”int”)
(2,”a”)
(5,”,”)
(2,”b”)
(5,” ”)
(2,”a”)
(4,”=”)
(3,”10”)
(5,” ”)
(2,”b”)
(4,”=”)
(2,”a”)
(4,”+”)
(3,”20”)
(5,” ”)
(5,” ) “ )
-Design of a lexical scanner. Function of lexical scanner is an input source and output word symbols. Write keyword collections and program flow diagram. For example, for the C language source code. Enter the following paragraph:
main () (
int a, b
a = 10
b = a+ 20
)
Output shown:
(2, "main")
(5 ,"(")
(5 ,")")
(5 ,"{")
(1, "int")
(2, "a")
(5 ,",")
(2, "b")
(5 ," ")
(2, "a")
(4 ,"=")
(3, "10")
(5 ," ")
(2, "b")
(4 ,"=")
(2, "a")
(4 ,"+")
(3, "20")
(5 ," ")
(5, ")") Platform: |
Size: 2048 |
Author:覃曼丽 |
Hits:
Description: 词法分析器C++程序,完整代码。
本程序实现Pascal语言子集单词符号的词法分析程序。具体功能为:
(1)给出各单词符号的类别编码;
(2)词法分析程序应能发现输入串中的错误;
(3)词法分析作为单独一遍编写,词法分析结果为二元式序列组成的中间文件;
-Lexer C++ program, a complete code. The Program for a subset of Pascal language words symbol of the lexical analyzer. Specific functions are: (1) gives the encoding of each word class symbols (2) lexical analyzer should be able to find errors in the input string (3), again written as a separate lexical analysis, lexical analysis is composed of binary-type sequence the intermediate file Platform: |
Size: 186368 |
Author:hhy |
Hits: