Parser Scanner

Merger of Parser and Scanner in C

This sample assignment in C involving merger of parser and scanner has been proposed by our experts. This merger has to be done from a pre-referenced source. More define enumerations has also to be added to values.h. Corrections have to be made in given parser and scanner according to the instructions.

SOLUTION: –

Discussion

I got core dump with define:

function main a: integer returns integer;

b: integer is 8;

begin

if a then

if b then

a * 2;

else

a + 5;

endif;

else

a / 2;

endif;

end;