Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 28th, 2005, 4:00 AM   #1
aznchong91
Newbie
 
Join Date: Oct 2005
Posts: 14
Rep Power: 0 aznchong91 is on a distinguished road
Need Help about Writing a Programming Lanuage

Hi,

I am thinking of a project where I want to write my own programming language, specifically designed to make standalone applications. I know (or at least I THINK I know) that I have to use assembly to do this. However, I am not sure about the details. Do I write some sort of translator that translates the programmer's programming into assembly, and then assemble that with an assembler like NASM what?

Please help!
Thanks
aznchong91 is offline   Reply With Quote
Old Oct 28th, 2005, 4:03 AM   #2
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
There are different types of programming language taht you can choose from. I don't have the tim to list them all here but you must decide if you want it compiled or interpreted.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Oct 28th, 2005, 4:12 AM   #3
aznchong91
Newbie
 
Join Date: Oct 2005
Posts: 14
Rep Power: 0 aznchong91 is on a distinguished road
I want to turn their programming into .exe's. Which one would that be?
aznchong91 is offline   Reply With Quote
Old Oct 28th, 2005, 4:21 AM   #4
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Compiled.

In all seriousness, i don't quite think you are ready to build your own language.

You didn't know what a compiled language was and you didn't think to google.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Oct 28th, 2005, 4:25 AM   #5
aznchong91
Newbie
 
Join Date: Oct 2005
Posts: 14
Rep Power: 0 aznchong91 is on a distinguished road
Well, ok, I didn't bother knowing what the difference is between a compiled language and an interpreted one. I'm sorry. But I still need to know how exactly it is done. Do you create a .asm file according to their programming and then assemble that into a .exe?

I hope you guys can help me out!
aznchong91 is offline   Reply With Quote
Old Oct 28th, 2005, 4:46 AM   #6
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
You realize that making a compiler is as/harder than making an OS.

You could try making an interpreted language first, like Python.

C was written in assmebly, it took the team at bell labs years to complete. Its a little more complex than you think.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Oct 28th, 2005, 4:56 AM   #7
aznchong91
Newbie
 
Join Date: Oct 2005
Posts: 14
Rep Power: 0 aznchong91 is on a distinguished road
So how would I go about making an interpreted language? Do I need assembly?
aznchong91 is offline   Reply With Quote
Old Oct 28th, 2005, 5:00 AM   #8
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
C or C++ would be a good language to do it in, i suppose you coudl use ASM to overcomplicate it.

Basically you make the "interpretor" which is installed onto the computer that needs to use your language, and when run with the code for your language it will do something.
(bad explaination)

I suggest you try python out, to get an idea of what its like. www.python.org
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Oct 28th, 2005, 5:11 AM   #9
aznchong91
Newbie
 
Join Date: Oct 2005
Posts: 14
Rep Power: 0 aznchong91 is on a distinguished road
Ok, thanks for your help!

Do you know any tutorials on how I could do this (i tried googling, but found nothing good)?
aznchong91 is offline   Reply With Quote
Old Oct 28th, 2005, 5:11 AM   #10
pal
Programmer
 
pal's Avatar
 
Join Date: Mar 2005
Location: Washington
Posts: 91
Rep Power: 4 pal is on a distinguished road
I recommend python if you're a beginner in computer programming, it will help you get ready for the following languages that you might want to learn, not that I'm saying python is inefficient. It will teach you a great deal of the concept of programming.
pal is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC