foreach syntax
Timon Gehr
timon.gehr at gmx.ch
Fri Jun 29 11:09:39 PDT 2012
On 06/29/2012 08:04 PM, Namespace wrote:
> On Friday, 29 June 2012 at 17:55:57 UTC, Timon Gehr wrote:
>> On 06/29/2012 07:50 PM, Namespace wrote:
>>>> You'll also have to change the line that says expect(TOKsemicolon);
>>>
>>> In what? comment out?
>>
>> Looking at some other parts of the parse.c source reveals that
>>
>> if(token.value == TOKin) nextToken(); else expect(TOKsemicolon);
>>
>> might get you going.
>
> I think i'm to stupid for that, sry.
My bad:
Replacing the line with the following, together with the other change
you made, works:
if(token.value == TOKin) nextToken(); else check(TOKsemicolon);
More information about the Digitalmars-d-learn
mailing list