4 ms·
It's not bad. It's got some not-entirely-awful metaprogramming features; a while back I got interested in it and wrote a 'modern' macro package proof-of-concept
by david-given 10y ago
It's not bad. It's got some not-entirely-awful metaprogramming features; a while back I got interested in it and wrote a 'modern' macro package proof-of-concept for it:
http://cowlark.com/meta http://cowlark.com/meta
Example input follows. Defining a paragraph style in meta:
.STYLE TITLE
. FONT SANS
. FACE B
. FONTSIZE 30
. ALIGNMENT CENTER
./STYLE
...and using it:
.TITLE
The meta macro package
./TITLE
This is a very simple, noddy example of how to use the meta
macro package. It's not intended to be a reference (there currently isn't one).
But the core language is kinda horrible, needing a really hacky implementation, and you can't define inline macros --- the \fB and \fP above are built-ins. Macro invocations have to start on new lines. In fact, this isn't a bad limitation in practice for anything even slightly heavyweight, but for italics, bold and underline it's still nice to have inline markup.