I'm using constructs-to-c
command in top-level to convert my constructs to c code. Till the moment I know how to use these source files as black boxes. I think in these files, CLIPS implement the RETE algorithm, right? I'd like to know how can I understand the name convention and the contents of these files? I found no explanation to this in the reference manuals.
This is the only explanation I found to this point but I didn't understand a lot from the second point. I have a good understanding of RETE algorithm, though.
Also is there someway to visualize the RETE network CLIPS creates for my constructs?
Thanks
答案 0 :(得分:0)
构造到c生成的文件只是用于表示CLIPS构造的C数据结构的转储,因此它们不是rete算法的表示,而是算法操作的数据。生成文件中数组使用的命名约定旨在将指针引用从一个数组保持为另一个数组的简短且不同 - 不要使它们易于阅读。要可视化网络,您需要自己手动绘制连接。我想说通过向CLIPS添加简单/单个规则并使用调试器逐步执行代码来查看断言和缩进是如何处理的,这样做更容易。