First attempt at code gen.............better late than never. Just set
up some stuff up. I think most of it is straight forward (except boolean
expressions of course) may have screwed myself with how I managed scope
Some more progress on code gen. Got all of variable declaration done and
assignment of integers and I think boolean. Attempted string assignment
statement, but it didn't work out so well
Some more progress on code gen. I think I have everything done except
while and string assignment and string print. I'm comparing my generated
code to the code generated by the sample assignments and its a little
different but it seems to still work from what I've seen.
A little more progress did some backpatching so I could test what I've
done so far. Had to go back and fix the problem I was having with scope
Added jump back patching everything should be working except while, if
(just for !=) and printing string expressions
If statements work for != now....totally hacked it but desperate times
call for desperate measure
Got printing for strings to work but I run into a memory access error
when an Id is declared before the print statement. My referenceBackpatch
method is coming up with a location that is larger than 256
My project wouldn't live up to its name if it was completely done. This
was my last undergrad assignment to submit and I think part of me didn't
want to finish it because then I would have to admit I was actually
done. Although it gave me anxiety I did enjoy this class! Thanks for a
good 4 years =)
Merge pull request #5 from kelseyobrien/master

Final