Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create my own programming language [duplicate]

Possible Duplicates:
References Needed for Implementing an Interpreter in C/C++
How to create a language these days?
Learning to write a compiler

I know some c++, VERY good at php, pro at css html, okay at javascript. So I was thinking of how was c++ created I mean how can computer understand what codes mean? How can it read... so is it possible I can create my own language and how?

like image 256
Ramilol Avatar asked Sep 07 '10 20:09

Ramilol


People also ask

Can I create my own programming language?

You can just take a subset of an existing language or come up with a simple variation of it and get started. However, if you have plans for creating your very own programming language, you will have to give it some thought. I think of designing a programming language as divided two phases: The big-picture phase.

Can you use 2 programming languages at once?

There are various ways that multiple languages can be used in one project. Some examples: You can write a DLL in, say, C, and then use that library from, say, a VB program. You could write a server program in, say C++, and have lots of different language implementations of the client.

How do you make a coding language?

Write words over and over again, practice having conversations with your friends, write notes back and for the to each other in a notebook, or send each other messages online. The more you write and speak your language, the faster it will become second nature to you. Decide how to share the language with friends.

Is C++ a scripted language?

Answer: Programs written in C++ are compiled and then the compiled code runs to generate the output. C++ is thus a programming language and not a scripting language, since scripting languages are directly interpreted at run time and no prior compilation of the code takes place.


2 Answers

If you're interested in compiler design ("how can computer understand what codes mean"), I highly recommend Dragon Book. I used it while in college and went as far as to create programming language myself.

like image 56
Nikita Rybak Avatar answered Oct 14 '22 00:10

Nikita Rybak


"Every now and then I feel a temptation to design a programming language but then I just lie down until it goes away." — L. Peter Deutsch

EDIT (for those who crave context):

"[L. Peter Deutsch] also wrote the PDP-1 Lisp 1.5 implementation, Basic PDP-1 LISP, 'while still in short pants' between the age of 12-15 years old."

like image 25
anthony Avatar answered Oct 14 '22 00:10

anthony