Program to convert circuit description file into PostScript file.
COMS11401
C
Objectives
Read string logic statements (i.e. “a OR NOT b”) and output a PostScript file (boolean gates and wires).
Allow a rules file to be processed and to apply substitutions to inputted logic statements (i.e. converting “a OR 0” to “a” with rule file “x OR 0 = x” ) .
Approach Taken
Read string logic statements into a data structure.
Used logic rules (read from a file) to apply transformations to the data structure.
Traversed the data structure and outputted to PostScript file.
Learning Outcomes
Understood how to write and compile code in the C language - including the use of header files (“*.h”).
Learnt how to use a ‘makefile’ to simplify compiling code in C.
Gained experience in writing basic data structures in C.
Identified some of the benefits of separating out code into separate files.