Skip to content

Commit

Permalink
changelist for parserwithcodegen.c
Browse files Browse the repository at this point in the history
  • Loading branch information
njmaysonet committed Jul 10, 2015
1 parent be59d2d commit 81602fb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions codegenchangelist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

CHANGELIST 7/10/15 for PARSER
------------------------------

Changed printToFile to 3 ints as parameter since parser needs to print out the opcodes as ints,
added fprintf statement to print out 3 int values per line

Added output file pointer 'ofp', in main, added fopen and fclose for

Inside function FACTOR():
Lines 169 - 185 added code for assembly generation

Lines 197-202 added code for assembly generation

Inside function TERM():
Lines 227-249, added code for assembly generation for mult and div

Inside function EXPRESSION():
Lines 256-267, added code for assembly generation for negation

Lines 277-291, added code for assembly generation for add and sub

Inside function CONDITION():
Lines 306-308, added assembly generation for odd

Lines 321-325, explanation of my implementation of conditionValue

Line 327-330, assembly generation for logical operations

Inside function STATEMENT():
Lines 361-366, added assembly generation for store (value assignment for a variable)
Lines 430-432, added assembly generation for conditional jump for if
Line 445, lines++ for jump statement generated inside for loop
Lines 470-472, added assembly generation for conditional jump for while
Line 490, added lines++ for jump statement generated inside for loop
Lines 492-493, added assembly generation for jump back to the while condition

Inside function BLOCK():
Lines 580-581, added assembly generation for stack adjustment (INC) for new variables

End of changes.

0 comments on commit 81602fb

Please sign in to comment.