Page 1 of 5

Can you create a programming language in PureBasic?

Posted: Sun Sep 21, 2008 8:35 pm
by sharkbate24
Hey everyone,

I'm still studying PureBasic, and I saw a link to thinBasic somewhere from this forum. I then read that thinBasic was created in PowerBasic or something, so now it made me wonder, is it possible to create a programming language in PureBasic? Would be awesome :).

Of course, I will stick with PureBasic, but it's taking quite a long time to learn because in my opinion there is quite a lack of up-to-date learning resources such as tutorials etc, but never the less, I'm trying hard :). If you guys could give me some tips or links to a few good tutorials for beginners out there, that would be great :), thanks!

Thanks a lot everyone.

Posted: Sun Sep 21, 2008 8:54 pm
by srod
There really is no limit to what you can do with Purebasic. I would think twice about using PB to create a new version of Windows, but apart from that, anything goes! :wink: Several people have written scripting languages with Purebasic.

As for tutorials, I find simply diving into code written by other people to be the best learning tool - but perhaps that is just me! Have a look at http://www.purearea.net/pb/english/index.htm. There is also blueznl's survival guide : http://www.purebasic.fr/english/viewtopic.php?t=19081
and then there is an introductory book on Purebasic by Kale which many have bought : http://www.pb-beginners.co.uk/

Posted: Mon Sep 22, 2008 12:12 am
by Kale
srod wrote:...and then there is an introductory book on Purebasic by Kale which many have bought : http://www.pb-beginners.co.uk/
Cheers. :)

Posted: Mon Sep 22, 2008 12:58 am
by Rook Zimbabwe
@Kale: What are the current plans for updating to PB 4.3? :D

Posted: Mon Sep 22, 2008 2:50 am
by X
If anybody have created a programming language in PB, nobody have said anything about it :( I was curious many moons ago, but people have made only scripting languages (so far).

If you ended up making a language, please let the community know :)

Posted: Mon Sep 22, 2008 4:57 am
by Mistrel
Yes, Kale's book is excellent. However will need to be updated sometime after 4.30.

Posted: Mon Sep 22, 2008 5:39 am
by JCV
Is PureBasic not self compiled?

Posted: Mon Sep 22, 2008 7:11 am
by thefool
JCV wrote:Is PureBasic not self compiled?
nope, but the IDE and debugger etc is written in it :)

Posted: Mon Sep 22, 2008 7:59 am
by Comtois
X wrote:If anybody have created a programming language in PB, nobody have said anything about it :( I was curious many moons ago, but people have made only scripting languages (so far).

If you ended up making a language, please let the community know :)
see here.

Posted: Mon Sep 22, 2008 2:28 pm
by Rescator
X wrote:If anybody have created a programming language in PB, nobody have said anything about it :( I was curious many moons ago, but people have made only scripting languages (so far).

If you ended up making a language, please let the community know :)
Heh! I think the issue is that few (if any) would be able to make a programming language in PureBasic that is better than PureBasic,
so what would be the point in making something that is worse when you can just use PureBasic? :P

Posted: Mon Sep 22, 2008 2:30 pm
by Rook Zimbabwe
I had always wondered about this topic. I saw the scripting language on the development site. Isn't creating a language that would incorperate PB functionality simply a way to steal PB?

You know... essentially creating a mirror of PB?

But then I think that the user will HAVE to create their own compiler and I realize that there would be a lot more work involved.

Posted: Mon Sep 22, 2008 2:58 pm
by srod
Purebasic does not a scripting engine make! :wink:

I will be in need of a good scripting engine very soon now and will write it in PB. This is not to say that I will be 'stealing PB's functionality' since if I could use PB as my scripting engine then I would do. PB itself is written in c (the compiler that is) but can in no way be described as stealing c! :)

Posted: Mon Sep 22, 2008 6:53 pm
by Rook Zimbabwe
What about D-Lib on prearea.net?

http://www.purearea.net/pb/english/index.htm

Posted: Mon Sep 22, 2008 6:54 pm
by X
Isnt that a scripting language? IE, its not truely compiled (binary 0...1s etc).

Posted: Mon Sep 22, 2008 7:05 pm
by srod
Rook Zimbabwe wrote:What about D-Lib on prearea.net?
I need certain customisations that D-Lib doesn't easily offer. Beside's, I always like writing my own tools - just for the challenge! :wink: