Click here to Skip to main content
15,912,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
CPallini 12-Jan-11 13:41pm    
Your question is far for being clear. Do you want to give 'create new commands' with existing statements?
Henry Minute 12-Jan-11 14:00pm    
I believe that what you seem to want to do can be done with Macros. Do an internet search on 'c++ Macros' for more information.
SajjadZare 12-Jan-11 15:03pm    
I want to change syntax of statement for example instead of use for use another statement

Develop your own Compiler 'SajjadZare' & create your own language where you can do what you want. :laugh:
 
Share this answer
 
Comments
AHBB 13-Jan-11 9:51am    
Not so funny. try some big words.
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.
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900