Code Has Errors

posted in The Broken Mind
Published December 10, 2008
Advertisement
I have finally finished typing the 34 files of code found in Appendix A of the latest edition of the Dragon Book. All the files compiled just fine. So tonight I typed up the last package, parser, which is the longest file at 207 lines long. I get 3 errors, one of them was just a typo so I recompile. 3 errors again. I look at the errors and it seems they are NOT typos. :(

Which really sucks because I typed all this code up just for there to be errors in the code that was published. It really sucks because I dont even know Java so its going to be a pain to try to fix it. It looks like the errors that are coming up all have to do with the parameters not matching the function declarations. I will post the code so anyone who wants to look at the compiler can attempt to fix it. I will give you a cookie if you do!

EDIT: Here is the link to the zip containing all the code. Please note that this is not my code, it can be found in Compilers: Principles, Techniques, & Tools, Second Edition. I tried to type the code just like it was in the book, but I still need to go back and add in all the comments. Here is the code:
http://members.gamedev.net/fallingsky/DragonBookSource.zip
Previous Entry Dragon Book
Next Entry Fathom This
0 likes 3 comments

Comments

alfith
Hello.
If I am not wrong, the source code is here: book website
December 11, 2008 01:42 AM
nolongerhere
Oh my god..
that website had been down for days so I thought they had gotten rid of it.
I cant believe I typed ALL that code!
December 11, 2008 01:31 PM
Jotaf
Don't worry, you'll be remembered all over the net now! When the first version is lost, at least, and people turn to your version instead of the original :) At least you learned something, right?
December 11, 2008 10:05 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

26 Games 26 Weeks

1654 views

Celenite

1199 views

Im back...again!

1047 views

Tunnel Syndrome

1324 views

Borderlands

1228 views

First Flash Game

1020 views

First Flash Game

1316 views

Bullet holes? Yum!

1130 views

Game 2

1079 views

New Project

937 views
Advertisement