一种带约束的microKanren扩展框架
A Framework for Extending microKanren with Constraints
摘要:
我们提出了一个框架,用于构建CLP语言的符号约束的基础上microKanren,一个特定领域的逻辑语言浅嵌入Racket。我们依靠Racket的宏系统来生成约束求解器和microKanren嵌入的其他组件。框架本身和约束的实现总共只有100多行代码。我们的框架是一个可教的实现CLP以及测试床和原型工具的符号约束系统。
英文摘要:
We present a framework for building CLP languages with symbolic constraints based on microKanren, a domain-specific logic language shallowly embedded in Racket. We rely on Racket's macro system to generate a constraint solver and other components of the microKanren embedding. The framework itself and the constraints' implementations amounts to just over 100 lines of code. Our framework is both a teachable implementation for CLP as well as a test-bed and prototyping tool for symbolic constraint systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。