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.
我一直在尝试习惯在 Prolog 中使用 DCG 并且失败了。
如何定义一组语法规则来接受语言 a^nb^n?
例如 aaaabbbb 或 ab 等...
谢谢 :)。
ab --> []. ab --> [a], ab, [b].