how can i define a new language in VC++ ??
-
hello everybody, my project module is to develop a graphical language in vc++. we have to declare a few keywords,graphical routines,looping statements etc. Using the syntax that we declared earlier, telling the user to follow that syntax to code it. My problem is, how can i define these langauage primitives and compile it to produce the output. FOr example, the user code in editor, # start text "Mahe" 123 232 Bold cirlce 232 232 21 line 232 232 232 121 # stop our compiler(VC++) has to read all this code and produce a graphical output.please guide me for , how to analyze this project. first i have to spec it out the language keywords etc and all...please suggest me to workout this project Mahesh Kumar,b'lore
-
hello everybody, my project module is to develop a graphical language in vc++. we have to declare a few keywords,graphical routines,looping statements etc. Using the syntax that we declared earlier, telling the user to follow that syntax to code it. My problem is, how can i define these langauage primitives and compile it to produce the output. FOr example, the user code in editor, # start text "Mahe" 123 232 Bold cirlce 232 232 21 line 232 232 232 121 # stop our compiler(VC++) has to read all this code and produce a graphical output.please guide me for , how to analyze this project. first i have to spec it out the language keywords etc and all...please suggest me to workout this project Mahesh Kumar,b'lore
Hello! If grammar in your language is simple You must learn about(as minimal) regular expression: http://www.codeproject.com/cpp/OwnRegExpressionsParser.asp if grammar in your language is difficult(above 50 grammar rules), you must learn compiler design theory and use compiler-of-compiler for example yacc.