C ++中的解析器 [英] Parser in c++

查看:70
本文介绍了C ++中的解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是学生,我想知道解析器是如何工作的?我读了它的理论,但是如果您有实现一个示例的c ++代码,我很难实现它的示例之一,请帮忙吗?我想阅读它,然后尝试理解它的工作原理,请给我一个包含解析器示例的c ++代码示例?


Hi i''m student i want to know how parser work? i read its theory but is hard to me to implement one of its example if u have c++ code that implement one example please help? i want to read it then i try to understand how it works please give me example of c++ code that impliment parser example ?

推荐答案

如果您正确理解了理论,那么它不应该太困难.确保您了解递归的工作原理,然后从一个非常简单的语法开始.
:)
If you understand properly the theory then it shouldn''t be too difficult. Make sure you understand how recursion works and then start with a very simple grammar.
:)


尝试

您尝试过在互联网上搜索吗?
您可能会发现一些不错的示例可供预览和下载.
Did you try searching on the internet?
You might find some good samples available for preview and download.


这篇关于C ++中的解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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