fcl-passrc cannot parse platform, library, deprecated hint directives
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
Current FPC in SVN can handle directives "platform" etc. at an identifier. However, current fcl-passrc fails on them:
$ fpc test_parser.lpr
$ fpc ok_hint_directives.pas
$ ./test_parser ok_hint_directives.pas
An unhandled exception occurred at $08093FC6 :
EParserError : Expected ";" at token "Identifier platform"
Attaching the testcase, for the test_parser.lpr see bugreport #16340 (closed) or the wiki: http://wiki.freepascal.org/fcl-passrc
The testcase contains at the beginning various comments about how Delphi/Kylix seem to parse them. These were written for PasDoc parser implementation, I leave them there in case you find them useful :)
Mantis conversion info:
- Mantis ID: 16342
- OS: Debian GNU/Linux
- OS Build: (testing)
- Build: 15177 (today's SVN)
- Platform: i386
- Fixed in version: 2.4.4
- Fixed in revision: 16365 (#605d9b5e)