Walter - Discrepancy between EqualExpression spec and implementation

Unknown W. Brackets unknown at simplemachines.org
Sun May 28 18:49:29 PDT 2006


Forgive me if I am off-base here, but the following code:

int main()
{
	int i = 0;
	bool b = i == 0 == true !is false;

	return 0;
}

Compiles without errors.  This would suggest to me that it is being 
parsed according to the spec, roughly.  Perhaps it's just not following 
that exact BNF (but implementing the same difference, e.g. outside 
EqualExpression)?

-[Unknown]


> "Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message 
> news:e5d40i$vp4$1 at digitaldaemon.com...
>> I'm writing a small scripting language with a syntax based on D, and as 
>> such, I'm basing some of the parsing code off the the DMD frontend source. 
>> I've found a discrepancy between the spec and the code, though, and I'm 
>> not sure if it's a bug or if it was changed in the code on purpose and the 
>> spec just hasn't been updated.
> 
> I just realized that most of the parsing functions follow this same pattern 
> (of not following the spec).  The only functions that seem to follow the 
> spec are parseAssignExp() and parseCondExp(). 
> 
> 



More information about the Digitalmars-d mailing list