feat: 增加了analyzer, compiler不再分析并且报错, 只生产 bytecode, analyzer作为前端结束最后一道防线检查代码,同时引入一个简单的LSP
This commit is contained in:
19
src/LSP/FigLSPServer.cpp
Normal file
19
src/LSP/FigLSPServer.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <LSP/LSPServer.hpp>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
_setmode(_fileno(stdin), _O_BINARY);
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
#endif
|
||||
|
||||
Fig::LspServer server;
|
||||
|
||||
server.Run();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user