http://qs321.pair.com?node_id=154089


in reply to Style geekcode

Looking at the codes submitted already, I'm nervously hoping that there are other weirdos like me out there... But here goes:

I2t! Os1 ;0 S,><.><+><**><=><&&><and>++<gt><==> B1 L1 C1 P0 N< R1 Vc1a1p(s-1h0a1)r1d1 Hsw2 main-sub

Update: Well as long as we're all being picky, it's a shame that I can't specify NO spaces around an operator. That's why I'm leaving out the ++ operator unless this gets clarified some more. Also, I'm choosing "dummy" variables even though these are more typically "temp".

buckaduck

Replies are listed 'Best First'.
Re: Re: Style geekcode
by Juerd (Abbot) on Mar 25, 2002 at 17:12 UTC

    it's a shame that I can't specify NO spaces around an operator.

    You can!! Just have the operator without "<" or ">". Your code would be:

    S,><.><+><**><=><&&><and>++<gt><==>
    I'll add a bit of clarification to the root node

    U28geW91IGNhbiBhbGwgcm90MTMgY
    W5kIHBhY2soKS4gQnV0IGRvIHlvdS
    ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
    geW91IHNlZSBpdD8gIC0tIEp1ZXJk
    

      In your example, how do you distinguish between these?
      ++ <gt> ++< gt>

      Update: Apparently he does it by reading the specs more carefully than I did. My bad.

      buckaduck

        In your example, how do you distinguish between these?
        ++ <gt> ++< gt>

        You don't have to. Both mean:

        • No space with ++
        • A space on both sides of comparison operators (except for ==)
        Valid ++ codes are:
        ++ <++ # These three ++> # have the <++> # same meaning
        So with "++<", the less-than sign is always part of the expression that comes after ++.

        U28geW91IGNhbiBhbGwgcm90MTMgY
        W5kIHBhY2soKS4gQnV0IGRvIHlvdS
        ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
        geW91IHNlZSBpdD8gIC0tIEp1ZXJk