我想從一個字符串解析動態功能,例如:動態解析函數形式串
char* func = "app.exe /path:\"@FileExists('filepath', @FileDelete('filepath'), @MsgBox('file not found','error',1))\";
我想分析
@FileExists('filepath', @FileDelete('filepath'), @MsgBox('file not found','error',1))
我怎樣才能做到這一點?
「解析」是什麼意思?這一切結束後你想結束什麼?一個解析樹?令牌列表?你想基於這個來執行一些東西嗎? – 2009-04-23 16:16:08
是的,我想從文本中提取功能並執行 – Moudey 2009-04-23 16:38:52