实例介绍
对c代码进行语法分析,生成语句之间的连接关系,借助dot工具以图形化方式显示,另外解析出每个函数的变量的定义、使用情况 该版本没有加入预处理,预处理功能可以自己开发(有些复杂),也可以借助gnu c的预处理功能
【实例截图】
【核心代码】
ee24d774-017c-4251-90f2-b951c7b9e15b
└── cp-u-1.0.14-8
├── c_actions.cpp
├── c_actions.h
├── c.grm
├── c_lexer.cpp
├── c_lexer.h
├── c.lgr
├── c_main.cpp
├── c_main.h
├── cp
│ ├── 1.png
│ ├── 1.txt
│ ├── cdt.dll
│ ├── config6
│ ├── dot.exe
│ ├── freetype6.dll
│ ├── graph.dll
│ ├── gvc.dll
│ ├── gvplugin_core.dll
│ ├── gvplugin_dot_layout.dll
│ ├── gvplugin_gd.dll
│ ├── gvplugin_gdiplus.dll
│ ├── gvplugin_neato_layout.dll
│ ├── gvplugin_pango.dll
│ ├── intl.dll
│ ├── libcairo-2.dll
│ ├── libexpat-1.dll
│ ├── libexpat.dll
│ ├── libfontconfig-1.dll
│ ├── libglib-2.0-0.dll
│ ├── libgmodule-2.0-0.dll
│ ├── libgobject-2.0-0.dll
│ ├── libgthread-2.0-0.dll
│ ├── libpango-1.0-0.dll
│ ├── libpangocairo-1.0-0.dll
│ ├── libpangoft2-1.0-0.dll
│ ├── libpangowin32-1.0-0.dll
│ ├── libpng12.dll
│ ├── libpng14-14.dll
│ ├── ltdl.dll
│ ├── Pathplan.dll
│ ├── Thumbs.db
│ ├── zlib1.dll
│ └── 说明.txt
├── c_parser.cpp
├── c_parser.h
├── cp.ncb
├── cp.sln
├── cp.suo
├── cp.vcproj
├── cp.vcproj.ZL.zp.user
├── Debug
│ └── cp.exe
├── KDetectMemoryLeak.h
├── test2
│ ├── comp.bat
│ ├── COMP.c
│ ├── comp-graph.bat
│ ├── comp.png
│ ├── comp.txt
│ ├── connect.bat
│ ├── CONNECT.c
│ ├── connect-graph.bat
│ ├── connect.png
│ ├── connect.txt
│ ├── convert.bat
│ ├── CONVERT.c
│ ├── convert-graph.bat
│ ├── convert.png
│ ├── convert.txt
│ ├── copy.bat
│ ├── COPY.c
│ ├── copy-graph.bat
│ ├── copy_link.bat
│ ├── COPY_LINK.c
│ ├── copy_link-graph.bat
│ ├── copy_link.png
│ ├── copy_link.txt
│ ├── copy.png
│ ├── copy.txt
│ ├── delete.bat
│ ├── DELETE.c
│ ├── delete-graph.bat
│ ├── delete_link.bat
│ ├── DELETE_LINK.c
│ ├── delete_link-graph.bat
│ ├── delete_link.png
│ ├── delete_link.txt
│ ├── delete.png
│ ├── delete.txt
│ ├── DUInfo-COMP.txt
│ ├── DUInfo-CONNECT.txt
│ ├── DUInfo.txt
│ ├── DUPair-COMP.txt
│ ├── DUPair-CONNECT.txt
│ ├── DUPair.txt
│ ├── DUPath-COMP.txt
│ ├── DUPath-CONNECT.txt
│ ├── DUPath.txt
│ ├── enter.bat
│ ├── ENTER.c
│ ├── enter-graph.bat
│ ├── enter.png
│ ├── enter.txt
│ ├── find.bat
│ ├── FIND.c
│ ├── find-graph.bat
│ ├── find.png
│ ├── find.txt
│ ├── function.txt
│ ├── get_number.bat
│ ├── GET_NUMBER.c
│ ├── get_number-graph.bat
│ ├── get_number.png
│ ├── get_number.txt
│ ├── get_string1.bat
│ ├── GET_STRING1.c
│ ├── get_string1-graph.bat
│ ├── get_string1.png
│ ├── get_string1.txt
│ ├── get_string2.bat
│ ├── GET_STRING2.c
│ ├── get_string2-graph.bat
│ ├── get_string2.png
│ ├── get_string2.txt
│ ├── go_edit.bat
│ ├── GO_EDIT.c
│ ├── go_edit-graph.bat
│ ├── go_edit.png
│ ├── go_edit.txt
│ ├── Graph2Src-COMP.txt
│ ├── Graph2Src-CONNECT.txt
│ ├── Graph2Src-CONVERT.txt
│ ├── Graph2Src-COPY_LINK.txt
│ ├── Graph2Src-COPY.txt
│ ├── Graph2Src-DELETE_LINK.txt
│ ├── Graph2Src-DELETE.txt
│ ├── Graph2Src-ENTER.txt
│ ├── Graph2Src-FIND.txt
│ ├── Graph2Src-GET_NUMBER.txt
│ ├── Graph2Src-GET_STRING1.txt
│ ├── Graph2Src-GET_STRING2.txt
│ ├── Graph2Src-GO_EDIT.txt
│ ├── Graph2Src-INIT.txt
│ ├── Graph2Src-INPUT.txt
│ ├── Graph2Src-INSERT_CHAIN.txt
│ ├── Graph2Src-INSERT.txt
│ ├── Graph2Src-LIST.txt
│ ├── Graph2Src-main.txt
│ ├── Graph2Src-NEXT.txt
│ ├── Graph2Src-READ_LINE.txt
│ ├── Graph2Src-REPLACE.txt
│ ├── Graph2Src-STORE.txt
│ ├── Graph2Src-TOP.txt
│ ├── Graph2Src.txt
│ ├── Graph2Src-UP.txt
│ ├── Graph2Src-WRITE_LINE.txt
│ ├── Graph-COMP.txt
│ ├── Graph-CONNECT.txt
│ ├── Graph-CONVERT.txt
│ ├── Graph-COPY_LINK.txt
│ ├── Graph-COPY.txt
│ ├── Graph-DELETE_LINK.txt
│ ├── Graph-DELETE.txt
│ ├── Graph-ENTER.txt
│ ├── Graph-FIND.txt
│ ├── graph-gen.bat
│ ├── Graph-GET_NUMBER.txt
│ ├── Graph-GET_STRING1.txt
│ ├── Graph-GET_STRING2.txt
│ ├── Graph-GO_EDIT.txt
│ ├── Graph-INIT.txt
│ ├── Graph-INPUT.txt
│ ├── Graph-INSERT_CHAIN.txt
│ ├── Graph-INSERT.txt
│ ├── Graph-LIST.txt
│ ├── Graph-main.txt
│ ├── Graph-NEXT.txt
│ ├── Graph-READ_LINE.txt
│ ├── Graph-REPLACE.txt
│ ├── Graph-STORE.txt
│ ├── Graph-TOP.txt
│ ├── Graph.txt
│ ├── Graph-UP.txt
│ ├── Graphviz-COMP.txt
│ ├── Graphviz-CONNECT.txt
│ ├── Graphviz-CONVERT.txt
│ ├── Graphviz-COPY_LINK.txt
│ ├── Graphviz-COPY.txt
│ ├── Graphviz-DELETE_LINK.txt
│ ├── Graphviz-DELETE.txt
│ ├── Graphviz-ENTER.txt
│ ├── Graphviz-FIND.txt
│ ├── Graphviz-GET_NUMBER.txt
│ ├── Graphviz-GET_STRING1.txt
│ ├── Graphviz-GET_STRING2.txt
│ ├── Graphviz-GO_EDIT.txt
│ ├── Graphviz-INIT.txt
│ ├── Graphviz-INPUT.txt
│ ├── Graphviz-INSERT_CHAIN.txt
│ ├── Graphviz-INSERT.txt
│ ├── Graphviz-LIST.txt
│ ├── Graphviz-main.txt
│ ├── Graphviz-NEXT.txt
│ ├── Graphviz-READ_LINE.txt
│ ├── Graphviz-REPLACE.txt
│ ├── Graphviz-STORE.txt
│ ├── Graphviz-TOP.txt
│ ├── Graphviz.txt
│ ├── Graphviz-UP.txt
│ ├── Graphviz-WRITE_LINE.txt
│ ├── Graph-WRITE_LINE.txt
│ ├── init.bat
│ ├── INIT.c
│ ├── init-graph.bat
│ ├── init.png
│ ├── init.txt
│ ├── input.bat
│ ├── INPUT.c
│ ├── input-graph.bat
│ ├── input.png
│ ├── input.txt
│ ├── insert.bat
│ ├── INSERT.c
│ ├── insert_chain.bat
│ ├── INSERT_CHAIN.c
│ ├── insert_chain-graph.bat
│ ├── insert_chain.png
│ ├── insert_chain.txt
│ ├── insert-graph.bat
│ ├── insert.png
│ ├── insert.txt
│ ├── list.bat
│ ├── LIST.c
│ ├── list-graph.bat
│ ├── list.png
│ ├── list.txt
│ ├── main.bat
│ ├── main.c
│ ├── main-graph.bat
│ ├── main.png
│ ├── main.txt
│ ├── next.bat
│ ├── NEXT.c
│ ├── next-graph.bat
│ ├── next.png
│ ├── next.txt
│ ├── read_line.bat
│ ├── READ_LINE.c
│ ├── read_line-graph.bat
│ ├── read_line.png
│ ├── read_line.txt
│ ├── replace.bat
│ ├── REPLACE.c
│ ├── replace-graph.bat
│ ├── replace.png
│ ├── replace.txt
│ ├── run-all.bat
│ ├── store.bat
│ ├── STORE.c
│ ├── store-graph.bat
│ ├── store.png
│ ├── store.txt
│ ├── top.bat
│ ├── TOP.c
│ ├── top-graph.bat
│ ├── top.png
│ ├── top.txt
│ ├── up.bat
│ ├── UP.c
│ ├── up-graph.bat
│ ├── up.png
│ ├── up.txt
│ ├── write_line.bat
│ ├── WRITE_LINE.c
│ ├── write_line-graph.bat
│ ├── write_line.png
│ ├── write_line.txt
│ ├── 函数调用.bat
│ ├── 函数调用.c
│ ├── 函数调用-graph.bat
│ ├── 函数调用.png
│ ├── 函数调用-.txt
│ └── 函数调用.txt
├── 输出.txt
└── 运行说明.txt
4 directories, 282 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论