programming methodology

how to make a simpletron assembly language syntax checker?