Page 3 of 5
Thanks everyone
Posted: Fri Aug 28, 2009 1:01 pm
by TheCorruptor
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

Posted: Fri Aug 28, 2009 1:04 pm
by Trond
This thread just lost all its structure. I think we need to establish some global procedures to prevent further cases of ... of... ... *this.
Re: Thanks everyone
Posted: Fri Aug 28, 2009 1:15 pm
by Trond
TheCorruptor 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

Hi
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.
Posted: Fri Aug 28, 2009 1:22 pm
by srod
Trond wrote:This thread just lost all its structure. I think we need to establish some global procedures to prevent further cases of ... of... ... *this.
You win Trond!

Posted: Fri Aug 28, 2009 7:28 pm
by Rook Zimbabwe
I bow in trond's direction!

Posted: Fri Aug 28, 2009 8:48 pm
by Trond
I started a tutorial that will show the absolute basics of making a simple compiler. I will post the beginning tomorrow.
Posted: Fri Aug 28, 2009 10:59 pm
by RemyVincent
Rook Zimbabwe wrote:I bow in trond's direction!

... 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 ???
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 ) ?
Nice and simple or should I say basic compiler,
Posted: Sat Aug 29, 2009 1:43 am
by TheCorruptor
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".
Posted: Sat Aug 29, 2009 6:11 am
by Teng
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
Posted: Sat Aug 29, 2009 5:19 pm
by X
Same here ... this will be the first compiler made in PB thats actually open to the public ..
Posted: Sat Aug 29, 2009 5:50 pm
by blueznl
Is it already tomorrow?

Posted: Sat Aug 29, 2009 6:50 pm
by utopiomania
Google 'Jack Crenshaw'
Posted: Sat Aug 29, 2009 6:51 pm
by X
and .. he made it in pascal .. we're talking about trond making it in pb ....

Posted: Sat Aug 29, 2009 7:14 pm
by Trond
X wrote:and .. he made it in pascal .. we're talking about trond making it in pb ....

I'll just rip off the crenshaw tutorial.

Posted: Sat Aug 29, 2009 7:15 pm
by X
hehe, as long as its in pb
