Description of the problem
When SExpParser.parseFile parses an empty file, it will fail with:
uncaught exception Fail [Fail: error [empty:1.1]: parsing value, found '']
This is somewhat unexpected. An empty file has no s-expressions, so
SExpParser.parseFile should be returning an empty list instead. Returning an
empty list also has the advantage of making it possible to distinguish between
parsing errors and empty files.
Comments from smlnj-gforge
Original smlnj-gforge bug number 307
Submitted on 2022-32-14 at 00:3200
comment by @JohnReppy on 2022-18-31 16:1800 +000 UTC
Fixed for 110.99.3 and 2022.1
comment by @JohnReppy on 2022-52-11 18:5200 +000 UTC
Moved to feature requests
comment by @JohnReppy on 2022-52-11 18:5200 +000 UTC
Moved from Bugs to Feature Requests
Description of the problem
When
SExpParser.parseFileparses an empty file, it will fail with:uncaught exception Fail [Fail: error [empty:1.1]: parsing value, found '']
This is somewhat unexpected. An empty file has no s-expressions, so
SExpParser.parseFileshould be returning an empty list instead. Returning anempty list also has the advantage of making it possible to distinguish between
parsing errors and empty files.
Comments from smlnj-gforge
Original smlnj-gforge bug number 307
Submitted on 2022-32-14 at 00:3200
comment by @JohnReppy on 2022-18-31 16:1800 +000 UTC
Fixed for 110.99.3 and 2022.1
comment by @JohnReppy on 2022-52-11 18:5200 +000 UTC
Moved to feature requests
comment by @JohnReppy on 2022-52-11 18:5200 +000 UTC
Moved from Bugs to Feature Requests