You are not logged in.
Pages: 1
Topic closed
Maybe a similar thread has been posted before..I searched but didn't find anything though..I thought this was interesting
You want to create a programming language for your own purposes but don't know where to start..Well assuming that you are a solid C/C++ programmer..this thread will help you make your own language..that has namespaces, classes, methods, arrays, control structures, simple math, and standard I/O interaction..and maybe later you can develop a language with certain libraries...etc..
So you can choose what you want to do:
Create your own C scripting language in exactly that, C. Not C-Like, not a dysfunctional C, not C Shell, but pure C just like it was compiled.
* Create your own C++ scripting language.
* Create a scripting language of your own liking by re-implementing C or C++ in your style, and then "breaking" those C or C++ features you don't want implemented in your code.
Ok now..open terminal,type this:
wget 'http://labs.cybozu.co.jp/blog/kazuho/archives/c/C-0.05-1.i386.rpm'
then type:
sudo alien C-*.rpm
For those who don't have alien installed..install
sudo apt-get install alien
For those of you who don't what Alien is
It allows you to convert LSB, Red Hat, Stampede and Slackware Packages
into Debian packages, which can be installed with dpkg.
Ok now let's install it:
sudo dpkg -i c-*.deb
Alright..now let's consider this code
#define write(s) printf(s "\n");
write("test");
So now to write a text in your "new programming language" you type write and the string that you want to enter.
Now save the file what ever you want..
Open terminal and type:
C ex.someextension
And you should see your program!!
I hope you found this useful.. :):)
Last edited by Cedric (January 19 2008)
Pages: 1
Topic closed