diff --git a/extra/parser-combinators/simple/simple.factor b/extra/parser-combinators/simple/simple.factor index eac1c4068b..955807efa3 100644 --- a/extra/parser-combinators/simple/simple.factor +++ b/extra/parser-combinators/simple/simple.factor @@ -11,7 +11,7 @@ LAZY: 'any-char' ( -- parser ) [ digit? ] satisfy [ digit> ] <@ ; : 'integer' ( -- parser ) - 'digit' [ 0 [ swap 10 * + ] reduce ] <@ ; + 'digit' [ 10 swap digits>integer ] <@ ; : 'string' ( -- parser ) [ CHAR: " = ] satisfy