||
MSDN Code Gallery 上的一个项目,可下载的包中包含了较易理解的例程。
这是一个通用的文本解析器. 他的使用类似于正则表达式, 但比正则表达式更复杂, 可以用来解析更复杂的文本.
基于.NET开发的,无源代码。解析例程似乎有问题,无法用VS2008打开。原因不明。
A lexical analyzer generator for C#
http://www.cybercom.net/~zbrad/DotNet/Lex/
ANTLR
- Powerful paring engine supports lexical token parsing, rich grammar rules and very interestingly (and usefully) parse tree parsing. Although you'll need a Java JDK 1.4 to run it, it can be used to generate C# source code.
" ... provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, C++, or Python actions."
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-20 04:33
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社