Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有完整的系列测试来测试 GLR 解析器是否正确编写?
我正在编写一个 GLR 解析器,所以我想为我的代码找到一些测试。由于可能缺少一些条件,我自己无法找到完整的测试套装。
我已经编写了一些测试来测试解析器。但我不知道它是否会在其他条件下失败。所以我需要“一个完整的测试”,可能是很多人在测试中添加测试用例。这可以保证解析器可以处理任何情况。GLR 解析器可以处理任何上下文无关文法,因此需要测试很多条件。