解析器生成 [英] Parser generation
问题描述
我正在进行 SOFWARE PLAGIARISM检测上的一个项目..我打算用语言C ..来实现它,因为我应该创建一个令牌生成器和一个解析器..但是我不知道从哪里开始.任何人都可以帮我解决这个问题.
i am doing a project on SOFWARE PLAGIARISM DETECTION..i am intended to do it with language C..for that i am supposed to create a token generator, and a parser..but i dont know where to start..any one can help me out with this..
我创建了一个代币数据库,并从程序中分离了代币.接下来我要做的是比较两个程序,以找出是否被窃.为此,我需要创建一个语法分析器.我不知道从哪里开始...
i created a database of tokens and i separated the tokens from my program.Next thing i wanna do is to compare two programs to find out whether it's plagiarized or not. For that i need to create a syntax analyzer.I don't know where to start from...
即我想为python中的c程序创建一个解析器
i.e I want to create a parser for c programs in python
推荐答案
如果要在Python中创建解析器,可以查看以下库:
PLY
pyparsing
和 Lepl -全新但功能强大
If you want to create a parser in Python you can look at these libraries:
PLY
pyparsing
and Lepl - new but very powerful
这篇关于解析器生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!