views:

26

answers:

1

I'm using yacc to make a symbol table for a made-up language grammar.

Column 1 will have either "variable" or "function."

Column 2 will have either "int" or "void."

I was thinking of naming one column "type" but then I wouldn't know what to call the other one.

+2  A: 

identefier for variables and functions names...

Literal for int or void....

hope that helps : D

Ahmad Dwaik