Grammar error detection method, device, equipment, storage medium and program product
By utilizing the detection plugin code generated in the browser using a large language model, browser-side static syntax detection of C++ code was achieved, solving the problem of high server resource consumption, realizing real-time detection with zero server overhead, and reducing development difficulty and cost.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN DIANMAO TECH CO LTD
- Filing Date
- 2026-03-27
- Publication Date
- 2026-06-30
AI Technical Summary
Existing static syntax checking tools for C++ code cannot run directly in web browsers, resulting in high CPU resource consumption on servers. This significantly increases computing costs, especially in high-concurrency scenarios, and also makes development and maintenance difficult.
By directly detecting the code to be detected in the browser, and utilizing the detection plugin code generated by the large language model, static syntax detection is achieved locally in the browser, reducing the dependence on server resources. A fail-fast mechanism is used to identify parser-level syntax errors, and the detection plugin code is dynamically registered and uninstalled through a plugin architecture.
It achieves real-time, zero-server-overhead static syntax checking, reduces the latency from user input code to error flag display, shortens the development time of the detection plugin code, reduces manpower and time costs, and simplifies development difficulty.
Smart Images

Figure CN122309368A_ABST