A short glimpse into ye olde programming world is like eating an awesome cake after a yearlong diet.
Currently we are modeling, traversing meta-models and writing simple model-parsers.
Getting a bit dirty is always fun, engaging and useful even if you stopped programming ages ago.
Ah the sweetness:
.select many objects from instances of O_OBJ
.for each object in objects
public class ${object.Name}{
.select many attributes related by object->O_ATTR[102]
.for each attribute in attributes
Int ${attribute.Name}
.end for
}
.end for
.emit to file “yes.txt”
And it works!
Visar inlägg med etikett cake. Visa alla inlägg
Visar inlägg med etikett cake. Visa alla inlägg
onsdag 18 november 2009
Prenumerera på:
Inlägg (Atom)