Previous Table of Contents Next


7.1 HutnConfig Language Configuration

   The following document is the language configuration of the HUTN language for the HutnConfig MOF metamodel. The document is configured by itself, and therefore the body text is duplicated in the @config section of the opening comment. This demonstrates the use of the @config statement for specifying language configurations within HUTN documents.

   /**

    * @config HutnConfig “HutnConfig? { all_of_type IdentifierConfig “HutnConfig.IdentifierConfig? {

   id_attribute: “HutnConfig.ClassConfig.the_class? } EnumAdjectiveConfig “HutnConfig.IdentifierConfig? {

   adjectives: “HutnConfig.IdentifierConfig.uniqueness? } all_of_type IdentifierConfig “HutnConfig.EnumAdjectiveConfig? {

   id_attribute: “HutnConfig.ClassConfig.the_class? } all_of_type IdentifierConfig “HutnConfig.ParametricConfig? {

   id_attribute: “HutnConfig.ClassConfig.the_class? } all_of_type IdentifierConfig “HutnConfig.RenameConfig? {

   id_attribute: “HutnConfig.RenameConfig.the_element? } } */

   HutnConfig “HutnConfig? { all_of_type IdentifierConfig “HutnConfig.IdentifierConfig? {

   id_attribute: “HutnConfig.ClassConfig.the_class?}EnumAdjectiveConfig “HutnConfig.IdentifierConfig? {

   adjectives: “HutnConfig.IdentifierConfig.uniqueness? } all_of_type IdentifierConfig “HutnConfig.EnumAdjectiveConfig? {

   id_attribute: “HutnConfig.ClassConfig.the_class? } all_of_type IdentifierConfig “HutnConfig.ParametricConfig? {

   id_attribute: “HutnConfig.ClassConfig.the_class? } all_of_type IdentifierConfig “HutnConfig.RenameConfig? {

   id_attribute: “HutnConfig.RenameConfig.the_element? } }