Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - lexical program in c
Search - lexical program in c - List
这是一个编译原理实验要用到的词法分析程序,用C++完成的,可以实现对C++源程序的词法分析,类型判别,已在VS2008调试通过,欢迎下载。-This is an experiment to use the compiler from lexical analysis program, using C++ to complete, and can be achieved on the C++ source code of the lexical analysis, the type of discrimination has been adopted in the VS2008 debugger, please download.
Date : 2025-12-17 Size : 1kb User : lyb

设计一个词法扫描器。词法扫描器的功能是输入源程序,输出单词符号。写出关键字集合和程序流程图。例如源程序为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,” ) “ ) -The design of a lexical scanner. Function of lexical scanner is an input source, the output word symbols. Keywords set to write and program flow chart. For example, for the C language source code. Enter the following: main () (int a, b a = 10 b = a+ 20 ) output in Figure: (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, " )" )
Date : 2025-12-17 Size : 2kb User : yyzhou
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.