Can you create a programming language in PureBasic?

Everything else that doesn't fall into one of the other PB categories.
sharkbate24
User
User
Posts: 50
Joined: Sat Aug 30, 2008 3:21 pm

Can you create a programming language in PureBasic?

Post 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.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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/
I may look like a mule, but I'm not a complete ass.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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. :)
--Kale

Image
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

@Kale: What are the current plans for updating to PB 4.3? :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Post 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 :)
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Yes, Kale's book is excellent. However will need to be updated sometime after 4.30.
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Is PureBasic not self compiled?

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

JCV wrote:Is PureBasic not self compiled?
nope, but the IDE and debugger etc is written in it :)
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post 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.
Please correct my english
http://purebasic.developpez.com/
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post 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
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post 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.
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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! :)
I may look like a mule, but I'm not a complete ass.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

What about D-Lib on prearea.net?

http://www.purearea.net/pb/english/index.htm
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Post by X »

Isnt that a scripting language? IE, its not truely compiled (binary 0...1s etc).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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:
I may look like a mule, but I'm not a complete ass.
Post Reply