Welcome to IBM HeapAnalyzer. IBM HeapAnalyzer allows the finding of a possible Java heap leak area through its heuristic search engine and analysis of the Java heap dump in Java applications. You can find more information at http://www.alphaworks.ib
在eclipse、Java环境下实现简单词法分析器:
1.输入:待词法分析的txt文档路径
2.输出:
① 单词串:每一个单词串均为一个WordString对象,所有单词串存放在List中(wordString)
② 符号表:存放在List中(identifier)
③ 常数表:存放在List中(constant)
3.实现过程:
① 通过文件IO流读入代码,进行预处理,剔除无关注释、换行符、空格等
② 对字符串进行遍历,必要时进行超前搜索、回溯