Two small suggestions
Posted: Wed Feb 21, 2007 5:30 am
The program works so well that these ideas are rather superficial.
However...
1) a little syntactical change for doing multiple subsequent rules in an easier way
letters etc. would be simpler if one could "pipe" rules in the following way:
** { x 1 } TT HH EE MM EE SS SS AA GG EE { } **
It is almost like 5* { } RULE { } but more flexible, and still preprocessor (stage 1)
The ending asterisks (or similar) would be optional
2) inheritance...
It could still be preprocessor. And sometimes it would decrease code size quite nicely. The include directive would be more useful then, too.
I mean the following way
metarule AB { b .1 }
metarule ASAT { sat .1 }
rule DRAW { SQUARE { } DRAW { s .9 } }
rule CHILDTHING inherits AB ASAT DRAW { }
This is of course a stupid example, because writing the rules takes more characters. But suppose we would use the same kinds of modulations in, say, 10 drawing rules? Or building libraries of personal artistic ideas?
However...
1) a little syntactical change for doing multiple subsequent rules in an easier way
letters etc. would be simpler if one could "pipe" rules in the following way:
** { x 1 } TT HH EE MM EE SS SS AA GG EE { } **
It is almost like 5* { } RULE { } but more flexible, and still preprocessor (stage 1)
The ending asterisks (or similar) would be optional
2) inheritance...
It could still be preprocessor. And sometimes it would decrease code size quite nicely. The include directive would be more useful then, too.
I mean the following way
metarule AB { b .1 }
metarule ASAT { sat .1 }
rule DRAW { SQUARE { } DRAW { s .9 } }
rule CHILDTHING inherits AB ASAT DRAW { }
This is of course a stupid example, because writing the rules takes more characters. But suppose we would use the same kinds of modulations in, say, 10 drawing rules? Or building libraries of personal artistic ideas?