A good
solution is to allow generators to specify reusable translators in a declarative fashion.
It should be possible to use a translator while outputting just a single piece of model
information, or to be able to turn them on for a longer block of the generator containing
multiple commands.
WHAT IS NEEDED IN A DSM ENVIRONMENT 381
Syntax Highlighting Most developers have come to expect syntax highlighting
from their IDE. In generators this is even more important, as they are a mixture of three
syntaxes: the generator language, modeling language, and output language. The
generator language and modeling language can be highlighted easily, and at least a
single color format can be applied to all ?¬?xed text elements??”effectively the output
language. In all but the simplest template cases, the language in which output is
generated will be so split up in the generator as to make parsing it largely useless.
Currently, all generator languages separate ?¬?xed text elements from generator
language elements with some character sequence. As that sequence will be used
frequently, it is useful to keep it as short and unobtrusive as possible: a quote mark is
faster to type and read than a template scripting style sequence like <% ??. It would be
interesting to experiment with an approach where the separation was achieved purely
with formatting, for example a gray background versus a white background.
Pages:
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732