--- a/src/HOL/Library/Sum_Of_Squares/sum_of_squares.ML Thu Nov 26 15:28:42 2009 +0100
+++ b/src/HOL/Library/Sum_Of_Squares/sum_of_squares.ML Thu Nov 26 20:07:02 2009 +0100
@@ -537,8 +537,8 @@
fun token s =
Scan.repeat ($$ " ") |-- word s --| Scan.repeat ($$ " ")
val numeral = Scan.one isnum
- val decimalint = Scan.repeat numeral >> (rat_of_string o implode)
- val decimalfrac = Scan.repeat numeral
+ val decimalint = Scan.repeat1 numeral >> (rat_of_string o implode)
+ val decimalfrac = Scan.repeat1 numeral
>> (fn s => rat_of_string(implode s) // pow10 (length s))
val decimalsig =
decimalint -- Scan.option (Scan.$$ "." |-- decimalfrac)