如果在 yacc 文件中给出语法,如何创建符号表? [英] How to create a symbol table if given a grammar in a yacc file?

查看:33
本文介绍了如果在 yacc 文件中给出语法,如何创建符号表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了一个 yacc 文件,我应该创建一个符号表.对文件使用yacc后怎么办?

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?

推荐答案

你的问题很广泛,有书籍和在线资源可以回答.
最好先阅读一下,然后回来提出更有针对性的问题.

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.

查看此 StackOverflow 问题的答案以获取 Yacc 教程的链接:

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

这篇关于如果在 yacc 文件中给出语法,如何创建符号表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆