Attributes (lexical)

Rumbu rumbu at
Thu Nov 25 10:41:05 UTC 2021

On Thursday, 25 November 2021 at 10:10:25 UTC, Dennis wrote:
> On Thursday, 25 November 2021 at 08:06:27 UTC, rumbu wrote:
>> Also, this works also for #line, even if the specification 
>> tells us that all tokens must be on the same line
> Where does it say that?


#line IntegerLiteral Filespec? EndOfLine

Having EndOfLine at the end means for me that there are no other 
EOLs between, otherwise this syntax should pass but it's not (DMD 

#line 12

I am not asking this questions out of thin air, I am trying to 
write a conforming lexer and this is one of the ambiguities.

More information about the Digitalmars-d-learn mailing list