Next: The Generated Code Up: The Prototyping Environment Previous: Prototyping Environment Database

Constraints and Update Rules Compiler

A compiler is provided to generate C++ code for the constraints and the update rules. First, the syntax of the language that is used to describe the constraints and the update rules is described. Second, the generated code is determined. Using a compiler instead of generic on-line evaluator for the constraints and the update rules has the following advantages:

On the other hand, it has the following disadvantages:

By analyzing the design constraints and the update rules, we constructed a simple description of the language to be input to the compiler. There are two options in this design, either to have one compiler for both the constraints and the rules, or to build two compilers, one for each. From the analysis of the constraints and the rules we found that there are many similarities between them; thus building one compiler for both is the logical option in this case.


sobh@bridgeport.edu
Thu Sep 15 15:37:47 MDT 1994