some refactorings...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-02-12 17:21:36 +04:00
parent f5329f8210
commit 3cc915c553

View File

@ -665,8 +665,8 @@ var BOOTSTRAP = [
':: . ( x -- ) [ drop ]',
':: .. ( x -- ) [ print drop ]',
'',
':: isT ( a -- b ) [ not not true eq ]',
':: isF ( a -- b ) [ not isT ]',
':: true? ( a -- b ) [ not not true eq ]',
':: false? ( a -- b ) [ not true? ]',
'',
'-- we already have gt and eq, now let\'s define the rest...',
':: ne ( a b -- c ) [ eq not ]',
@ -706,7 +706,7 @@ var BOOTSTRAP = [
'-- [ cond ] [ A ] [ B ] if',
'--',
'-- A bit too "polish" in my view ;)',
':: if ( cond a b -- ... ) [ rot rot exec isT tor and tor or exec ]',
':: if ( cond a b -- ... ) [ rot rot exec true? tor and tor or exec ]',
'',
'-- Ternary operator, this can take two forms:',
'-- COND ? A',