搜索资源列表
Lex.rar
- 1.输入文件解析 2.正则表达式转化为NFA 3.多个NFA合并 4.NFA转换DFA 5代码生成 关于输入文件格式: 没有考虑对lex输入文件的出错处理,所以输入文件务必严格书写正确。 Lex中的正规表达式使用了以下运算符: [] | * @ ( ) 并且正规表达式中不能出现其他的子正规表达式。 如果想要在待识别的正则式中使用上述运算符,请使用转义符号,即\。 例如,如果想用*,可以写成\* ,1. Analysis of the input file 2.
Calcu(MFC_Yacc_Lex)
- 网上很少有yacc+lex结合MFC使用的例子,于是自己按《yacc&Lex》上的例子实现了一个(通过Parser Generator生成C++类),VC6编译运行通过。 支持:+-*/() 数学函数、变量名-Few yacc+ lex-line with examples of the use of MFC, so their own press " yacc & Lex" on the example implements a (by Parser Generato
example
- 基于flex&bison(yacc)的四则运算器的例子,附带mylex.l与myyacc.y,文件输入在exprTest.txt中进行-Based on the flex&bison (yacc) four examples of logic, and with mylex. L and myyacc. Y, file input in exprTest. TXT
C---Assembly
- source code for example convert C to assembly by lex and ya-source code for example convert C to assembly by lex and yacc
cminus
- 简化C编译器的程序示例,该程序采取了最简单的实现方法,用lex&yacc工具的辅助,实现一个C编译器的框架,省略了中间代码生成部分和代码优化,直接生成汇编代码,实现了while语句、加法运算符等的翻译。-Simplified C compiler program example, the program has taken the simplest implementation, auxiliary lex & yacc tools to implement a C compiler f