[fpc-devel] FPC conditionals

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Nov 26 13:51:33 CET 2009


On 26 Nov 2009, at 13:41, Mattias Gaertner wrote:

> Allowed:
> 1+1<3
>
> Not allowed:
> (1+1)<3
>
> Are brackets not supported?
> Maybe only in some modes?

I doubt it. The preprocessor parser is very limited and completely  
separate from the regular parser. I think that it's in compiler/ 
scanner.pas, function parse_compiler_expr.

Disclaimer: I've never modified that code myself and don't know  
anything about it.


Jonas



More information about the fpc-devel mailing list