Skip to content

Commit 969837d

Browse files
committed
feat: 合并 WingCStructLib (WIP)
1 parent 92d6f01 commit 969837d

27 files changed

+10652
-2326
lines changed

CMakeLists.txt

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,17 @@ set(NUMCAL_GRAMMAR
9999
src/grammar/NumCal/NumCalVisitor.cpp
100100
src/grammar/NumCal/NumCalVisitor.h)
101101

102-
set(ANTLR4_GRAMMAR ${NUMCAL_GRAMMAR})
102+
set(CSTRUCT_GRAMMAR
103+
src/grammar/c/CStructVisitor.h
104+
src/grammar/c/CStructBaseVisitor.cpp
105+
src/grammar/c/CStructLexer.cpp
106+
src/grammar/c/CStructParser.cpp
107+
src/grammar/c/CStructVisitor.cpp
108+
src/grammar/c/CStructBaseVisitor.h
109+
src/grammar/c/CStructLexer.h
110+
src/grammar/c/CStructParser.h)
111+
112+
set(ANTLR4_GRAMMAR ${NUMCAL_GRAMMAR} ${CSTRUCT_GRAMMAR})
103113

104114
set(ANGEL_SCRIPT_ADDON_ROOT
105115
"${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/AngelScript/sdk/add_on")
@@ -188,6 +198,17 @@ set(DIALOG_SRC
188198
src/dialog/definitiondownload.cpp
189199
src/dialog/definitiondownload.h)
190200

201+
set(STRUCT_LIB_SRC
202+
src/structlib/cstructerrorlistener.cpp
203+
src/structlib/cstructerrorlistener.h
204+
src/structlib/cstructerrorstrategy.cpp
205+
src/structlib/cstructerrorstrategy.h
206+
src/structlib/cstructvisitorparser.cpp
207+
src/structlib/cstructvisitorparser.h
208+
src/structlib/ctypeparser.cpp
209+
src/structlib/ctypeparser.h
210+
src/structlib/structdefine.h)
211+
191212
set(CONTROL_SRC
192213
src/control/codeedit.h
193214
src/control/codeedit.cpp
@@ -316,10 +337,8 @@ set(CLASS_SRC
316337
src/class/resettabletimer.h
317338
src/class/resettabletimer.cpp)
318339

319-
set(INTERNAL_PLG_SRC
320-
src/class/wingangelapi.h src/class/wingangelapi.cpp
321-
src/class/ctypeparser.cpp src/class/ctypeparser.h src/class/wingcstruct.h
322-
src/class/wingcstruct.cpp)
340+
set(INTERNAL_PLG_SRC src/class/wingangelapi.h src/class/wingangelapi.cpp
341+
src/class/wingcstruct.h src/class/wingcstruct.cpp)
323342

324343
if(WINGHEX_USE_FRAMELESS)
325344
set(WIDGET_FRAME_SRC
@@ -467,6 +486,7 @@ set(PROJECT_SOURCES
467486
${QCONSOLEWIDGET_SRC}
468487
${WIDGET_FRAME_SRC}
469488
${RIBBON_SRC}
489+
${STRUCT_LIB_SRC}
470490
${CLASS_SRC}
471491
${INTERNAL_PLG_SRC}
472492
${MODEL_SRC}

lang/zh_CN/winghex_zh_CN.ts

Lines changed: 232 additions & 61 deletions
Large diffs are not rendered by default.

lang/zh_TW/winghex_zh_TW.ts

Lines changed: 232 additions & 61 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)