Bison - why this is producing syntax error for all inputs

后端 未结 0 662
难免孤独
难免孤独 2021-01-24 22:02

I have written a simple grammer:


expr:
    INT { $$ = intc($1); }
    | FLOAT { $$ = floatc($1); }
    | STR { $$ = strc($1); }
    | ID { $$ = id($1, false); }
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题