Can you create a programming language in PureBasic?
-
TheCorruptor
- New User

- Posts: 9
- Joined: Fri Aug 28, 2009 12:35 am
- Location: PA>USA
Thanks everyone
Thanks everyone for all your input and puns
. I have read all about Lexx and Yacc and parser generators in the past and yes all that is above my head and I dont have the time or interest to really learn that right now. I just wasnt sure if there was a simpler way to do it just using PureBasic to do as a simple learning project. I seen some examples of simple interperters in PureBasic and was wondering why there was no examples of a simple compiler in PureBasic. But if its that involved, I guess thats why there are no simple examples. Thanks again 
Re: Thanks everyone
HiTheCorruptor wrote:Thanks everyone for all your input and puns. I have read all about Lexx and Yacc and parser generators in the past and yes all that is above my head and I dont have the time or interest to really learn that right now. I just wasnt sure if there was a simpler way to do it just using PureBasic to do as a simple learning project. I seen some examples of simple interperters in PureBasic and was wondering why there was no examples of a simple compiler in PureBasic. But if its that involved, I guess thats why there are no simple examples. Thanks again
To make a compiler: there is no need to use lex and yacc or bison. If you don't, it is simpler and easier, and you can put a big label on your compiler that says: "no animals were harmed in the making of this software".
I may or may not post a small tutorial later.
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
-
RemyVincent
- New User

- Posts: 9
- Joined: Tue Oct 25, 2005 8:47 pm
- Contact:
... so, why not try to start a compiler in assembler 8086 16 bit, ... some lines, ... then start again with PUREBASIC ... what are you searching for ???Rook Zimbabwe wrote:I bow in trond's direction!
SLOW DOWN your compiler with object programming """OOP""", then with ADA OBJETCS programming, then with LISP code written with ada object programming ( so your LISP line coding would be accepted ) ?
Groups lower your IQ
-
TheCorruptor
- New User

- Posts: 9
- Joined: Fri Aug 28, 2009 12:35 am
- Location: PA>USA
Nice and simple or should I say basic compiler,
Thanks Trond , Thats what I was looking for an example that doesnt use Lexx,Bison, or Yacc just PureBasic. A simple example to see how a compiler is built and how it works and build upon that. Cant wait for that Tut.
" Its not always what one knows, Its knowing where to find the answers".
" Its not always what one knows, Its knowing where to find the answers".
Yeah, Trond is right, I regret my earlier post it was way too discouraging, I apologize if it deterred anyone.
Hmm..making your own lexer (isnt' that suppose to be harder than just using lex and yacc), whatever, this will be interesting. Looking forward to Trond's tut.
Useful link :
Let's Build a Compiler, by Jack Crenshaw
Hmm..making your own lexer (isnt' that suppose to be harder than just using lex and yacc), whatever, this will be interesting. Looking forward to Trond's tut.
Useful link :
Let's Build a Compiler, by Jack Crenshaw
Is it already tomorrow? 
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
- utopiomania
- Addict

- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway




