#12 "inf" doesn't work

v1.2
open
nobody
compiler (6)
5
2007-03-06
2007-03-06
Chris King
No

Although the floating-point literal "inf" is defined in the grammar, attempting to use it in a program produces the following error:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
= false ; macro val SOLARIS = false ; macro val BSD = false ; include "std" ; print inf
Syntax Error before token 122 in inftest.flx, line 3 col 10
; #<<EOF>>
0:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Flx_exceptions.ParseError("Error parsing input")
PARSE ERROR
Unknown exception Parsing File

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks