用新法律编写程序 [英] Write program with new laws
本文介绍了用新法律编写程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何编写具有新法律的程序?
意味着编写一个程序,例如,我声明了cout<<a;
,然后将其与print a
一起使用,并且编译器显示了a的值或声明了cin>>a;
,并且当我想从用户那里获取值时,我使用了get a
How to write a program with new laws?
means write a program that for example i declare cout<<a;
and then i use it with print a
and compiler show value of a or declare cin>>a;
and when i want to get value from user i use get a
推荐答案
开发自己的编译器"SajjadZare"并创建自己的语言,您可以在其中进行所需的操作. :laugh:
Develop your own Compiler ''SajjadZare'' & create your own language where you can do what you want. :laugh:
如果您想为一种简单的语言开发编译器/解释器,请看看ANTLR http://www.antlr.org/ [ ^ ] ,这非常有用.
If you want to develop a compiler/interpreter for a simple language, then have a look at ANTLR http://www.antlr.org/[^] , it is great at this.
您的问题不是作为典型的快速解答就可以回答的.
这是一个可能令人感兴趣的链接:
AspectC ++ [ ^ ]
这是一个研究项目,也许您会发现它很有趣.
问候
Espen Harlinn
Your question isn''t something that can be answered as a typical Quick Answer.
Here is one link that might be of interest:
AspectC++[^]
It''s a research project, and maybe you''ll find it interesting.
Regards
Espen Harlinn
这篇关于用新法律编写程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文