cxx前端 C ++ 20的解析器。 用法 const { parse } = require ( "cxx-frontend" ) ; const path = "main.cc" ; const source = ` int main() { if (x = 0 return 1; } ` ; const result = parse ( { path , source } ) ; console . log ( result ) ; 建立图书馆 mkdir -p build.em # configure the project emcmake cmake -Bbuild.em \