Tuesday, July 14, 2009

Can I make new Computer language, I dont want to learn C or C++?

Actually I dont know any programming language, Can anybody help me to make computer language, I dont want to learn C, or C++ because I dont think they are easy. I want to make my own computer language, Is it possible.

Can I make new Computer language, I dont want to learn C or C++?
Yes you can, but it is actually a harder thing to do than learning C and C++, furthermore you most likely would end up learning them anyways because most (if not all...) compilers are at the very least, based on C or C++





When designing a new computer language you need to take into account a lot more things than only the syntax, you need to know how to handle dynamic memory and preprocessor operations. And if you want to make your own programming language we're talking about a large scale project, not something that will be ready in a couple of weeks if you want it to do something more than compile a hello world.





If your problem is with C++ then here are two nice tutorials I trust you'll like:


http://library.thinkquest.org/C0111571/m...


http://www.cprogramming.com/tutorial/les...





But if you only wanted to learn a programming language, try Java, it is much easier than C++ in terms of not having to handle pointers and garbage collectors, or PHP for web development which is very very easy :)
Reply:Yes, you can make your own language. If you find C and C++ challenging then you aren't ready to make a language. You need good knowledge of data structures to make a language (the symbol table is the essential data structure behind most languages, assuming it's a compiled language).
Reply:Sure. Make a decoder.
Reply:Is this a trick question? If you can't be bothered learning the computer languages that exist because they're "too hard", I doubt you'd have the sticking power to do the incredibly involved and detailed task of creating your own language.





I think you'd do better to get a really good grounding in the languages that exist, including the more obscure ones, so you can learn their strengths and weaknesses. That way when you have a really good understanding of what's involved you can fix the problems and make your own language easier. And it'll give you something to do for the next 10 years or so, fixing all the bugs and problems in your own work...
Reply:You could write you own language. It isn't easy and takes many many months if not years. You must first understand the macro/computer instruction set of the machine you want to run the language on. For example, both Intel and AMD processor chips utilize the same exact instruction set. You would have to understand all the instructions, along with their addressing modes, and functions. You would then have to write you specific language commands in such a way that those commands execute the proper sequence of machine instructions. You have to do that for each and every command you write. For example, if you had a PRINT command, which would allow someone to print to lets say to a printer, you would have put together all the machine instructions that would allow you to print. Instructions such as MOVE, COMPARE, BRANCH, SET, INCREMENT, DECREMENT, etc. A typical processor has 100's of instructions and some of them have different addressing modes. You would have to understand all of them.
Reply:Sure, it's possible. However, if you feel that C or C++ are too complicated then you'll have a very hard time with binary or assembly code.





You'll have to have a much more in depth understanding of computer theory AND language theory than you do.
Reply:Yes learn lex,yacc and bison (of course they are 200% more complex than C,c++)
Reply:Anybody who answered along the lines that, "if C is too hard then writing your own language will really be much too challenging for you" steered you right. And all the thumbs-downs those answers got are proof positive that not everybody who hangs out here is a genius. ;-)
Reply:The most complex and integrate computer hardware is useless without instructions telling it what to do. These instructions are called programs and are written in computer programming languages. These computer programming languages allow people to communicate with the computer.
Reply:It is far harder writing a computer language than it is to use one. If you think C and it's variants hard, you will NEVER learn to write a language.
Reply:so use basic, visual basic, pascal or one of the Many other programing languages available.
Reply:It's impossible if you don't know any programming language. You would use one programming language to create another programming language. C or C++, I think is more commonly used PL because it is middle level. That means, it is kind of understandable by humans and more flexible in creating a program. Unlike Pascal or Basic which are high level. They are understandable by humans but not very flexible to design a program.


No comments:

Post a Comment