搜索资源列表
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