Building a Language in PB
Posted: Fri Feb 20, 2004 12:43 am
I've been reading for the last two weeks on building compilers and script systems. Lately(about two weeks ago) I stumbled upon PureBasic. It seems to be a very powerful language, and something I'd be able to get a healthy grasp of within a few months. I've been messing around with PB for a little(making a chat application/and small game), and am on the verge of purchasing.
Now I 1 small question that requires big thought.
"How should one go about building another programming language, withing Purebasic?"
First off, I would in no means boost or compete with PB. This is a project I"m taken upon for a learning experience, and build on in the future.
I've got a book I'm currently reading on Compilers,Principles, and Techniques that's very good. I just need help breaking down what tools/concepts I need to build a language in PB.
So, to break down building a compiler/language I would need...
- To build a GUI
- A lexical analyzer
- Something to break the scripts into machine code
So basically, I'm looking for reassurance on building another programming language in purebasic complete with a GUI and compiler.
Just post any advice,hints,and past experiences that you may have had. (Don't be shy to post links either
)
(Don't be shy to lead me to C++, lex, and other "non PB" resources if it'll help me on my journey)
Thanks for your support.

Now I 1 small question that requires big thought.
"How should one go about building another programming language, withing Purebasic?"
First off, I would in no means boost or compete with PB. This is a project I"m taken upon for a learning experience, and build on in the future.
I've got a book I'm currently reading on Compilers,Principles, and Techniques that's very good. I just need help breaking down what tools/concepts I need to build a language in PB.
So, to break down building a compiler/language I would need...
- To build a GUI
- A lexical analyzer
- Something to break the scripts into machine code
So basically, I'm looking for reassurance on building another programming language in purebasic complete with a GUI and compiler.
Just post any advice,hints,and past experiences that you may have had. (Don't be shy to post links either

(Don't be shy to lead me to C++, lex, and other "non PB" resources if it'll help me on my journey)
Thanks for your support.
