Handbook
Glossary
@first-char ( i number-parse n char -- n/f )
Vocabulary
math
.
parser
.
private
Inputs
i
an
object
number-parse
an
object
n
an
object
char
an
object
Outputs
n/f
an
object
Definition
USING:
combinators
;
IN:
math.parser.private
:
@first-char
( i number-parse n char -- n/f )
{
{
45
[
[
@neg-first-digit
]
require-next-digit
?neg
]
}
{
43
[
[
@pos-first-digit
]
require-next-digit
?pos
]
}
[
@pos-first-digit
?pos
]
}
case
;
inline