Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Programming Languages Creation

Author
Message
Data
19
Years of Service
User Offline
Joined: 26th Nov 2004
Location: Winnipeg,Canada
Posted: 9th Nov 2005 04:37
I was wondering how programming languages are really made. And is it possible to create your own? Also does anyone know any good articles on this topic?

Data

Money isn't everything.... You need something to spend it on.
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 9th Nov 2005 05:19
Programming languages are made in... well, other programming languages. DarkBasic Pro for example was made in C++, I believe.

Yes, it is possible to create your own Many people from this forum have done just that, and you can find some of them in the Programming Chat forum. There are great tutorials on the web-- look up parsing, tokenizing, interpreters, and compilers in Google and you'll find a wealth of goods

Killswitch
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 9th Nov 2005 10:31
I'm writing my own right now

~It's a common mistake to make, the rules of the English langauge do not apply to insanity~
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 9th Nov 2005 14:38
get:

"Game Scripting Mastery"


You can't go far wrong!

Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 9th Nov 2005 14:48 Edited at: 9th Nov 2005 16:04
It seems like writing a language has become the new 'black' this season.

Kevin Picone
[url]www.underwaredesign.com[/url]
Play Nice!Play Basic (Release V1.089 Out Now)- Play Extreme with Play Basic FX {TBA}
PowerSoft
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 9th Nov 2005 14:59
Too true UW Too True

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 9th Nov 2005 15:28
who was it that tried to make an "teh english programming language" ??

like instead of:
make object cube 1, 100
color object 1, rgb(255,0,0)

you was to write:
red = rgb(255,0,0)
make a cube 1 at size 100 and color it red

haha, that sucked. and he didn't get far i think

So you think you're tough? - Zombie Hunter DBPro Beta 1 - December 2005 - Not so tough anymore, huh?
(man, this ad suck!)
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 9th Nov 2005 17:13
Quote: ""teh english programming language""

good idea but its one which must be dreamt about

i can just imagine all the l33t programmers typing slang or 'txt' in to it and complaining when it doesn't work


amd athlon xp 2600+,1280mb,FX 5200 128mb,200gb,xp pro sp2
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 9th Nov 2005 18:04
yeah.

m4kE l33t obj3Ct 1one c0lr Rëd

So you think you're tough? - Zombie Hunter DBPro Beta 1 - December 2005 - Not so tough anymore, huh?
(man, this ad suck!)
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 9th Nov 2005 18:09 Edited at: 9th Nov 2005 18:09
Quote: "red = rgb(255,0,0)"


lol

make a cube 1 at size 100 and color it greeny red, mostly green but not too much with a reasonable amount of red and perhaps a subtle hint of blue somewhere.

=

make a cube 1 at size 100 and color it rgb(128, 192, 16)

Simple... yet fun!
Killswitch
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 9th Nov 2005 19:07
Well I'm quite proud of my language, it's modelled around PureBasic and DarkBasic - essentially I'm nicking the features I like from both (as well as adding some of my own).

The two features I've thought of are (and, please note, the names are subject to change):

'Meta Expressions': You can define an expression (such as 1+x) and use it as a variable.

'Result Warping': You can change the result of a command into any data form (long, float or string) in order to save you using ValF, Val and Str all the time. (This feature evolved out of my frustraion of having to use multiple Val's and Str's in one line of code).

What do you think?

~It's a common mistake to make, the rules of the English langauge do not apply to insanity~
Mikey P
19
Years of Service
User Offline
Joined: 23rd May 2005
Location: Manchester, UK
Posted: 9th Nov 2005 20:12
Hrmm the 'English' Programming language is very similar to what Apple tried to do with AppleScript [http://www.apple.com/macosx/features/applescript/].

Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 9th Nov 2005 20:15 Edited at: 9th Nov 2005 20:15
Quote: "good idea but its one which must be dreamt about "

I couldn't stand a language like that... i can't think of anything past


"We make the worst games in the universe."

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 9th Nov 2005 20:29


gee, how hard can it be??

So you think you're tough? - Zombie Hunter DBPro Beta 1 - December 2005 - Not so tough anymore, huh?
(man, this ad suck!)
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 9th Nov 2005 20:39 Edited at: 9th Nov 2005 20:39
Quote: "do not return anything
repeat the main part of the program"



i guess if you want to do the exact opposite of what i did...


"We make the worst games in the universe."

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 9th Nov 2005 21:13
dude, like i know c++ basic is the way to go.

only.. not

So you think you're tough? - Zombie Hunter DBPro Beta 1 - December 2005 - Not so tough anymore, huh?
(man, this ad suck!)
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 10th Nov 2005 09:38
I'm developing a script system - and it is a lot of fun to have so much control over a project, like being able to add your own commands and comming up with your own variable handling etc. It's all challenging but it's a lot easier than I thought it would be - I mean I need to make a psuedo-multitasking, like I have to run the script on numberous processes, but even that's not a biggie.

Writing an actual compiling language though, scary stuff if you ask me - certainly not for green-horns.


Van-B

Put those fiery biscuits away!
TKF15H
21
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 10th Nov 2005 11:35
I made a scripted language once, and never got very happy with its speed. I've decided to make a new one, neither compiled nor interpreted. JIT compilation is better. Harder than interpreted, but a bit easier than normal compilation. Those Intel manuals I got in the mail will come in handy.

WarBasic Scripting engine for DarkBasicPro
DC emulator code size: 14.3MB, 553,214 lines
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 10th Nov 2005 12:37 Edited at: 10th Nov 2005 12:38
im writing my own thing aswell:

door{
position: 10, 50, 10;
texture: "door01.bmp";
}

is this a scripting language?

So you think you're tough? - Zombie Hunter DBPro Beta 1 - December 2005 - Not so tough anymore, huh?
(man, this ad suck!)
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 10th Nov 2005 13:01
Yeah, scripting really just means performing tasks in sequential order. So anything that loads a file and performs the actions is a script system - some script systems have more language style commands though.

For example, if you could parse 'IF' statements then you can save yourself a lot of fiddly coding. Like you might load a mesh, and if there's a standard system to signify lower detail meshes, then you could use the script to simply load the relevant mesh automatically. Scripting can be addictive - I think it's a power trip thing.


Van-B

Put those fiery biscuits away!
re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 10th Nov 2005 15:43
Quote: "And is it possible to create your own?"

if it wasnt dbp wouldnt exist right?

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 10th Nov 2005 16:36
thanks for the info vanb

So you think you're tough? - Zombie Hunter DBPro Beta 1 - December 2005 - Not so tough anymore, huh?
(man, this ad suck!)
Jonny_S
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 10th Nov 2005 18:22
Quote: "It seems like writing a language has become the new 'black' this season.
"


Yeh I said that to someone a while back but i cannot remember who

Supermonkey - The crime gifhting sex god monkey!

Login to post a reply

Server time is: 2024-11-16 02:20:33
Your offset time is: 2024-11-16 02:20:33