LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Book "Compiler Construction using Flex and Bison" - problems, discussions, steps, ... (https://www.linuxquestions.org/questions/programming-9/book-compiler-construction-using-flex-and-bison-problems-discussions-steps-4175587087/)

dedec0 09-19-2016 03:14 PM

Quote:

Originally Posted by jpollard (Post 5607390)
The basic problem is that you need a decent book. This is not one of them.

You might try http://gnuu.org/2009/09/18/writing-y...-toy-compiler/

I haven't gone through this - but the organization behind it do know what they are doing.

Thank you! I have read its first page, the only thing that I would not choose is the use of llvm - but I will try that, anyway. llvm is something that have been close to me for sometime...

"gnuu" is a domain I have not seen before. Funny...

sundialsvcs 09-19-2016 07:20 PM

These are among the various (widely-held ...) sentiments that prompt me to encourage you to "use the Source, Luke!"

I have read a great many books on compilers, and, with the possible(??) exception of Aho's book, I have yet to read a single decent one.

Therefore, I say, Get Jiggy Wit It, as soon as possible. Surf GitHub for existing projects which actually(!) use(!!) Bison. Find their grammar files, and the associated code which uses the Bison-generated parser. "This is the Real Deal, baby!"

Take the output of the Bison step and actually look at it. Study the actual source-code of the runtime engine. Rip the hood and both fenders off of the damned thing, and look at it, until you can see for yourself how it actually w-o-r-k-s.

You've spent more than enough time "reading books about swimming." Go find some actual examples. Then, after tightly securing your life-vest and your foam noodles, get into the water!


All times are GMT -5. The time now is 12:18 AM.