[Oberon] BB Kernel Size

John Drake jmdrake_98 at yahoo.com
Mon Jan 23 21:10:53 CET 2006



--- Vasile Rotaru <vrotaru at seznam.cz> wrote:

> On Sat, 21 Jan 2006 00:20:01 +0100 (CET) Jack
> Johnson <knapjack at gmail.com> wrote:
> 
> > I can see that XML provides
> > huge flexibility in the BB interface, and I can
> also see that XML is
> > overkill for what it does.
> 
> Have you seen the the new (XML) way of defining
> editor macros? And compared it to the old format?

Well, not until you mentioned it.

> OMIGOD, it's not even write-only.. ))

Hmmmm....I disagree.  I have no problem reading (or
writing) macros in either format.  Here's an "old
format" macro:

 P ("PROCEDURE " write arg0 write ";" caret write cr
indent "BEGIN" write cr indent "END " write arg0 write
";" write cr)

And a "new" format XML version.

<Macro key="P">
  <String>PROCEDURE </String><Arg
nr="0"/><String>;</String><CR/>
  <String>BEGIN</String><CR/>
  <Indent/><Cursor/><CR/>
  <String>END </String><Arg
nr="0"/><String>;</String><CR/>
</Macro>

The "old" version uses a language (looks to be postfix
ala
Forth).  The new version uses an XML "template".

Yes, the older version is more terse.  But both are
clear
to understand (at least to me).

Regards,

John M. Drake

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Oberon mailing list