[問題] 請問有沒有人用過CDT
請問一下
有沒有人用過CDT,也就是JAVA用來開發C/C++ 程式
然後BBCDT是用來頡取C/C++產生出來的node
但是他的使用方式是
public void run(IAction action) {
IFile inputFile = ((FileEditorInput) editor.getEditorInput()).getFile();
if (CoreModel.isTranslationUnit(inputFile)) {
try {
TranslationUnit tu = (TranslationUnit)CCorePlugin.getDefault().
getCoreModel().create(inputFile);
IASTTranslationUnit ast = tu.getLanguage()
.getASTTranslationUnit(tu,ILanguage.AST_SKIP_ALL_HEADERS);
ast.accept(astVisitor);
...............................
開啟一個新視窗,然後建立BBCDT workspace,然後在新增BBCDT file
也就是c/c++ code 然後按一個鈕 才能parse
請問有沒有可能直接創建main 執行main
然後在code裡指定要parse的c/c++程式 位置呢 ?
不用再開啟一個eclipse 建立workspace 再新增要parse的file 最後還要再按一個鈕呢
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.116.166.110
※ 編輯: ntouckcm 來自: 59.116.166.110 (04/14 23:48)
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 4 篇):