Oliver Gantert - 2019-01-17

I found some more bugs.

/******/

In fpgac.y, rule globalvarlistmember
if(($1.v->type == TYPE_DEFINED) && ($1.v->type == TYPE_FLOAT))
becomes
if(($1.v->type & TYPE_DEFINED) && ($1.v->type & TYPE_FLOAT))

/******/

To fix the while(){} construct:

In fpgac.y, rule whileloop
RIGHTPAREN stmt
becomes
RIGHTPAREN whilestmt

Additional rule
whilestmt: stmt | leftcurly declarations stmts rightcurly

/******/

In syntax.l
sscanf(... "%Li" ...);
becomes
"%llo" for octal
"%llx" for hex

/******/

In output_netlist.c, output_CNF()
if(b->variable->width == 8)
fprintf(outputfile, "%c,", p);
becomes
if(b->variable->width == 8)
fprintf(outputfile, "%c,",
*p);

/******/

This fixes the most apparent bugs so far.