Handbook
Glossary
parse-roll ( string -- #dice #sides #added )
Vocabulary
dice
Inputs
string
an
object
Outputs
#dice
an
object
#sides
an
object
#added
an
object
Definition
USING:
kernel
math.parser
splitting
;
IN:
dice
:
parse-roll
( string -- #dice #sides #added )
"d"
split1
"+"
split1
[
string>number
]
tri@
;