This project has moved and is read-only. For the latest updates, please go here.
1
Vote

crash with rv null in ComputeProductionFlags

description

I got the crash (shown in the attached screenshot).

file attachments

comments

brantheman wrote Apr 25, 2013 at 10:08 PM

I've attached my grammar also.

brantheman wrote Apr 25, 2013 at 10:10 PM

At the point of the crash the parent CreateProduction lvalue = {StartSectionRow.grp1}

brantheman wrote Apr 25, 2013 at 10:15 PM

I find that there was a problem in my code. I was using the |= operator on a rule that had not been initialized. It would be nice if that case was handled appropriately. The | operator should return the non-null item out of two.

rivantsov wrote Apr 26, 2013 at 6:27 PM

yeah, I see the problem. I think the best place to add this is in overload of "+" operator. Will add in the next code update
thanks
Roman

brantheman wrote Apr 26, 2013 at 8:58 PM

I think you'll have to fix both Op_Plus and Op_Pipe to handle null inputs.