C ++解析器生成器 [英] C++ parser generator

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

问题描述

我正在编写自己的脚本语言,我需要一个软件工具来生成C ++代码来解析我的语言。我需要一个词法分析器和一个解析器生成器生成C ++代码。这将是很高兴我能够也生成一个Visual C ++ 2010项目。建议?

I'm writing my own scripting language and I need a software tool which generates C++ code for parsing my language. I need a lexical analyzer and a parser generator which generates C++ code. It would be nice for me to be able also to generate a Visual C++ 2010 project. Suggestions?

推荐答案

尝试使用Flex和Bison。

Try with Flex and Bison. They are good lexical analizers and parser generator usefull to define new languages.

http://en.wikipedia.org/wiki/Flex_lexical_analyser

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

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