✨ 实现基于模拟执行的代码诊断 (WIP)#11
Draft
fltLi wants to merge 4 commits into
Draft
Conversation
## TODO - 实现舞台对象和舞台效果状态表示 - 实现每种语句的舞台状态增量生成 - 为模拟执行添加全面的测试, 特别注意 unsafe 的使用 - 将模拟执行服务接入 crate `webgal-language-service` 的诊断流程 - 在仓库 README.md 特别说明此特性
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6.
本次 PR 引入
webgal-simulatecrate,为 WebGAL 脚本提供基于模拟执行的逻辑分析能力,补全静态诊断无法覆盖的动态错误检测。webgal-simulatecrate,定义舞台状态、状态增量与检查点机制;choose、getUserInput分支模拟(BFS),支持-lintValues预设输入;WG009~ ...,涵盖模拟中断、不可达代码、未定义引用、冗余操作、及连续执行块中断等类型;README.md中反映模拟执行这一新特性。详见 docs/diagnose.md 的逻辑分析章节。