понедельник, 12 октября 2015 г.

#825. Description of the meta-meta-model

Original in Russian: http://programmingmindstream.blogspot.ru/2015/08/blog-post_20.html
The previous series was here – Take your mind off objects emulation for a while and let’s get to meta-model and code generation

I have “decorated” it a bit.


The result is as follows:

Test CodeGen
 // %SUMMARY это is meta information that allows linking the documentation to the code elements.
//   Consequently, the documentation is available from the script engine.
 That is where we test meta-model building, model building and then code generation.'
// ---------------------------------------------------------------------------
 'That is where we determine axiomatic of meta-meta model and extract it in a separate dictionary later.
StereotypeStereotypeProducer meta
 Base element of meta-model determined
 This is the element that allows us to pull the rest “by hair out of the swamp”
 Other primitives are derived from this one’
 ; // %SUMMARY 
; // meta
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
 ' This is where we determine axiomatic of the specific model.
  We will extract it in a separate dictionary later.
  Next we will determine the UML concepts –
  There are CATEGORIES and CLASSES in it
  Actually, they merely differ from each other, however, let it be so 
  for it was so decided by some wise men
Let’s start with them:
// ---------------------------------------------------------------------------
 // - the CodeDump.ms.dict is loaded so we can “see” the DumpElement word
@SELF DumpElement
//  - the CodeGen element and its contents are dumped in a standard output device.
//    We only do it to debug what we’ve written.
; // CodeGen

Again, the code is somewhat “self-documented”.

See the following words:




Some time later I will tell about the self-descriptiveness” and how to use.

Let me give you a hint – “requirements and tests”,  UseCase, TDD and BDD.

Комментариев нет:

Отправить комментарий