fc349e2cf1/library/contrib/quirks.retro

User picture

Commiter: Charles Childers

Author: Charles Childers

Revision: fc349e2cf1


File Size: 1.38 KB

(February 23, 2010 04:12 UTC) Over 2 years ago

add r> >r and :noname to quirks library

 
Show/hide line numbers
( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
( Quirks                                                      )
( Retro has a lot of small oddities. This library is intended )
( to smooth out some of these.                                )
( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
( Copyright [c] 2010, Charles Childers                        )
( License: ISC                                                )
( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )

vocab quirks
((
  ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
  ( My < and > are comparison for "condition or equal", these   )
  ( exclude equality.                                           )
  ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
  : <  ( xy-f ) >if FALSE ;then TRUE ;
  : >  ( xy-f ) <if FALSE ;then TRUE ;


  ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
  ( I call this "r" in Retro.                                   )
  ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
  : r@ (  -n ) ` r ; compile-only
  : r> (  -n ) ` pop ; compile-only
  : >r ( n-  ) ` push ; compile-only


  ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
  ( Add :noname                                                 )
  ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
  : :noname here ] ;

))

' quirks shut