-
Notifications
You must be signed in to change notification settings - Fork 13
Type System
kbak edited this page Feb 28, 2012
·
2 revisions
A model is broken up into clafers and constraints. The type of clafers are explicitly annotated. It’s the constraints that the type checker needs to worry about. The type system needs to infer and type check the constraints to enforce the type rules.
The algorithm infers and checks the types in constraints in one bottom-up pass. During the pass, it will often need to find the type of a clafer reference. It will calculate the types of clafers as needed and cache them in a “symbol table”.
Generative Software Development Lab
University of Waterloo
200 University Avenue West
Waterloo, Ontario, Canada N2L 3G1