[lrs] Re: thoughts on Tea

  • From: Adrian Sampson <adrian_s@xxxxxxx>
  • To: lrs@xxxxxxxxxxxxx
  • Date: Mon, 17 Sep 2001 21:54:23 -0700

Yum? Oh, I see.

I think I vaguely recall spouting this off long ago, but here's some examples I
thought of with an easily-interpetable code in mind. However, this does make the
code itself quite ugly...


[command|parameters]
[command|param1,param2]
[command|[function|parameter]]
? and setting variables ?
[set|(var),value]

To make it cleaner, you could:
[command|
    parameter,
    parameter,
    [function|
        parameter,
    ]
    parameter,
]
But that gets big and scary fast.

Anyway, that really didn't last long after I tried to write a simple script in
it.
- Adrian "Read on for more translation?" Sampson


msgBox "Hi!"
[msgBox|"Hi!"]

s = "Hi!"
msgBox s
[set|(s),"Hi!"]
[msgBox|s]

for x = 1 to 10
    msgBox str(10)
next
[for|
    [set|(x),1],
    [set|(x),x+1],
    << no clue what would go here to replace "x<=10" >>,
    {
        [msgBox|
            [str|x],
        ]
    }
]

3 lines to 10? Hmm... This could use some retooling.

Other related posts: