问题
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