3125a52331/library/contrib/quirks.retro

User picture

Commiter: Charles Childers

Author: Charles Childers

Revision: 3125a52331


File Size: 1.37 KB

(March 10, 2010 13:24 UTC) About 2 years ago

remove TRUE and FALSE; fix bugs in building; pristine image now core+stage2+vocabs

 
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 0 ;then -1 ;
  : >  ( xy-f ) <if 0 ;then -1 ;


  ( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ )
  ( 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