global-env fetchobj define-var
;
-: add-prim ( args -- )
+:noname ( args -- )
2dup nil objeq? if
2drop
0 number-type
-rot car drop
+ number-type
then
-;
-
-' add-prim make-primitive +
+; make-primitive +
\ }}}
nextchar [char] - = ;
: number? ( -- bool )
- digit? minus? or false = if
- false
- exit
+ minus? if
+ inc-parse-idx
+
+ delim? if
+ dec-parse-idx
+ false exit
+ else
+ dec-parse-idx
+ then
+ else
+ digit? false = if
+ false exit
+ then
then
push-parse-idx