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
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".
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!
I may look like a mule, but I'm not a complete ass.
... 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 ) ?
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".
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.