Abstract:
Domain-Specific Modeling (DSM) raises the abstract level of the software, it represents the user requirements by models,and with generators,information is directly extracted from the models and transformed into code,the code can be automatically generated.Based on the research of domain -specific modeling language, generator,domain framework,summarizes the general process of implementing DSM under the tool of MetaEdit +, related technologies,and introduces the process of code generation in detail.Based on M etaEdit+,the metamodeling and domain-specific modeling of Electronic calendar are implemented,and with the algorithm of the depth-first traverse proposed,code of the electronic calendar is generated automatically.