import java.io.*; //============================================================ // Type Registry //------------------------------------------------------------ TypeRegistry = List(BasicType) . BasicType : IntrinsicType | DefinedType *common* TypeName . IntrinsicType = "intrinsic" . DefinedType : ClassType | NonClassType *common* "header:"
HeaderFile . NonClassType = "type" . ClassType : SimpleClassType | TemplatedClassType . SimpleClassType = "class" . TemplatedClassType = "template" String "class" . TypeName = String . HeaderFile = String . //============================================================ // Program classes //------------------------------------------------------------ Main = . //============================================================ // Utilities //------------------------------------------------------------ List(E) ~ {E}.