开发者

What to name these columns in my symbol table

开发者 https://www.devze.com 2022-12-14 02:00 出处:网络
I\'m using yacc to make a symbol table for a made-up language grammar. Column 1 will have either \"variable\" or \"function.\"

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 开发者_Python百科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.


identefier for variables and functions names...

Literal for int or void....

hope that helps : D

0

精彩评论

暂无评论...
验证码 换一张
取 消