需要简单的C ++编译器 [英] Simple C ++ compiler needed

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

问题描述

请任何人发送此代码
我想要一个编译器,以便它可以生成标记,类型和行,而不仅仅是
例如我写一个程序

Please any one send this code
i want a compiler so that it can generate token,type,and line no just
for example i write a program

void main()
int a;
a=2


它将输出显示为


it will show output as

token              type              line no
void               reserve            1
main               reserve            1
int                datatype           2


该程序将用c ++编写,以便如上所述在记事本中显示输出
请任何人帮助我


this program will written in c++ so that it show output in notepad as above
Please anyone help me

推荐答案

这是词法分析器的输出.您可以编写自己的词法分析器或使用工具,例如 flex [
That''s the output of a lexical analyzer. You may write your own lexical analyzer or use a tool, for instance flex[^].


感谢空闲63的答案.该程序的代码
谢谢
emailadress=ifo.justchilz@gamil.com
谢谢
thank idle 63 for answer..canyou send me sorce code of that program
thanks
emailadress=ifo.justchilz@gamil.com
thanks


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

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