J4

• Original Articles • Previous Articles     Next Articles

A study of the implementation of the precompiler for embedding the rule-based paradigm into the object-oriented language

LIU Xiao-jian;LIU Xi-yang;CHEN Ping

  

  1. (Research Inst. of Software Engineering, Xidian Univ., Xi'an 710071, China)
  • Received:1900-01-01 Revised:1900-01-01 Online:2003-02-20 Published:2003-02-20

Abstract: Traditional rule-based tools, such as OPS5, CLIPS, etc. are standalone, so it is difficult to intgrate them into an actual system coded with the C++ language. Based on ILOG Rules and CLIPS, a rule language embedded into the C++ is designed and a precomplier which translates this rule language into the C++ source is implemented in this paper. The designed rule language enhances the ability of cooperation between rule and C++ language in two aspects: one is that the rule can be embedded directly into LHS and RHS, and the other is to allow AND and OR pattern grouping in LHS.

Key words: rule-based system, rate algorithm, pre-compile

CLC Number: 

  • TP311