如何在C / C ++中实现表达式语法 [英] How Do I Implement Expression Syntax In C/C++

查看:76
本文介绍了如何在C / C ++中实现表达式语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c ++中实现表达式解析器。可以amyone plsssssss帮助...... ????? thanx提前...........

how to implement expression parser in c++. can amyone plsssssss help ... ????? thanx in advance ...........

推荐答案

您可以自己实现解析器代码(有很多可用的教程,只需 Google for [ ^ ])或使用像oldie-goldie这样的工具 lex-yacc (或 flex [ ^ ] - 野牛 [ ^ ])对,或更多 C ++ '喜欢 Boost.Spirit [ ^ ]。
You may either implement yourself the parser code (there are really many tutorials available, just Google for[^]) or use a tool like the oldie-goldie lex-yacc (or flex[^]-bison[^]) pair, or something 'more C++' like Boost.Spirit[^].


这篇关于如何在C / C ++中实现表达式语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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