How to create a symbol table if given a grammar in a yacc file?

不羁的心 提交于 2019-12-24 07:59:04

问题


I'm given a yacc file and I'm supposed to create a symbol table. What do I do after I use yacc on the file?


回答1:


Your question is very broad, and there exist books and online resources to answer it.
It would be best for you to do some reading and then come back and ask more targeted questions.

Check out the answers to this StackOverflow question for links to Yacc tutorials:

  • https://stackoverflow.com/questions/641701/excellent-online-tutorial-for-lex-and-yacc


来源:https://stackoverflow.com/questions/1737526/how-to-create-a-symbol-table-if-given-a-grammar-in-a-yacc-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!