rpn vocabulary
Factor handbook ยป Vocabulary index


Summary
Simple RPN calculator

Metadata
Tags:demos
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
push-insn tuplevalue


Singleton classes
add-insn
div-insn
mul-insn
sub-insn


Generic words
WordStack effect
eval-insn( stack insn -- stack )


Ordinary words
WordStack effect
binary-op( stack quot: ( x y -- z ) -- stack )
print-stack( list -- )
rpn( -- )
rpn-eval( tokens -- stack )
rpn-parse( string -- tokens )
rpn-tokenize( string -- string' )


Class predicate words
WordStack effect
add-insn?( object -- ? )
div-insn?( object -- ? )
mul-insn?( object -- ? )
push-insn?( object -- ? )
sub-insn?( object -- ? )


Files


Metadata files