Been playing with idea of how will I write out the contents of a parse tree to a text file. Might use simple statements to denote definitions and relationships.
Since it will be written out to a text file, an intermediate language grammar will have to be written for reading and writing out files in text format . The output file will be similar to an assembler syntax, except most of the definitions or references to internal and external symbols are names instead of numbers.
Will try to see if the input-process-output model is enough to make development and maintenance sane enough for one developer. The figure below shows how it will be partitioned.
c source --> C grammar --> parse tree
parse tree --> IL 1 grammar --> asm like syntax
asm like syntax --> IL 2 grammar --> IA32 asm
IA32 asm --> assembler --> binary format
