V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
ant_sz
V2EX  ›  Python

Python下面有没有专门用来匹配各种编程语言代码的不同部分的工具库

  •  
  •   ant_sz ·
    shanzi · 2012-04-21 22:31:03 +08:00 · 3449 次点击
    这是一个创建于 4389 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Python或者其他语言下面,有没有专门用来匹配各种编程语言代码的不同部分的工具什么的?

    比如专门用来提取C语言中的一个函数,C++中的一个类,在一个整个源文件中将这部分识别出来。
    比如在一个源文件中查找某个特定的函数,然后将这个函数整体提取出来这样。。。
    5 条回复    1970-01-01 08:00:00 +08:00
    phuslu
        1
    phuslu  
       2012-04-21 22:32:45 +08:00
    ant_sz
        2
    ant_sz  
    OP
       2012-04-21 22:39:28 +08:00
    @phuslu 不太清楚这个怎么用哎。。。
    HowardMei
        4
    HowardMei  
       2012-04-21 22:45:37 +08:00
    binux
        5
    binux  
       2012-04-21 22:50:48 +08:00
    pyparsing 如何?虽然得自己写
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1011 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:51 · PVG 02:51 · LAX 11:51 · JFK 14:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.