1ac5725353
* NEWS: Document floating point number handling in gasp. * gasp.c: Include <assert.h> and "xregex.h". (is_flonum): New function. (chew_flownum): Likewise. (change_base): Consume flonums from the input, where possible. * doc/gasp.texi (Constants): Document floating point numbers. [testsuite/ChangeLog] * gasp/flonums.asm: New test. * gasp/flonums.err: New result. * gasp/flonums.out: Likewise.
36 lines
573 B
Text
36 lines
573 B
Text
!.RADIX Q
|
|
! ! test floats now
|
|
! test floats now
|
|
! .float -H'C
|
|
.float -12
|
|
! .float -9.0
|
|
.float -9.0
|
|
! .float 0.9
|
|
.float 0.9
|
|
! .float +0.9
|
|
.float +0.9
|
|
! .float +.9
|
|
.float +.9
|
|
! .float -00.0009
|
|
.float -00.0009
|
|
! .float -2.900
|
|
.float -2.900
|
|
! .float 1.1e+10
|
|
.float 1.1e+10
|
|
! .float +1.1e+10
|
|
.float +1.1e+10
|
|
! .float +1.1e-10
|
|
.float +1.1e-10
|
|
! .float -1.1E+10
|
|
.float -1.1E+10
|
|
! .float +1.1E+1000
|
|
.float +1.1E+1000
|
|
! .float +1.1E+0001 10
|
|
.float +1.1E+0001 8
|
|
! .float 11.11E-10 10
|
|
.float 11.11E-10 8
|
|
! .float H'C.3
|
|
.float 12.3
|
|
! .float H'C.H'C
|
|
.float 12.12
|
|
!.END
|