% NAC parser / pretty-printer for N-Address Code (NAC) intermediate language % Nikolaos Kavvadias, February 2011 % All TXL parsers are automatically also pretty-printers if the % grammar includes the optional formatting cues, as in this case % Use the NAC grammar shown below include "nac.grm" % No need to do anything except recognize the input, since the grammar % includes the output formatting cues function main match [program] _ [program] end function