fix parser combinator tests to work with str>number change
parent
b6951b8afd
commit
15d30888d6
|
@ -193,7 +193,7 @@ USING: kernel lazy parser-combinators test errors strings parser lists math sequ
|
|||
|
||||
: pdigit [ digit? ] satisfy [ digit> ] <@ ;
|
||||
: pnatural pdigit <*> ;
|
||||
: pnatural2 pnatural [ car [ >digit ] map >string dup pempty? [ drop 0 ] [ str>number ] ifte unit ] <@ ;
|
||||
: pnatural2 pnatural [ car [ >digit ] map >string dup pempty? [ drop 0 ] [ string>number ] ifte unit ] <@ ;
|
||||
|
||||
[
|
||||
[ "" 12345 ]
|
||||
|
|
Loading…
Reference in New Issue