You're trying to convert the one line of Pascal code into PIC ASM using the BEDMAS mathmatical ordering scheme with your parser, correct?

Hmm... before getting into this I'd first recommend you read the very informative article Let's Build a Compiler by Jack Crenshaw. [size=9px](Listed in the site's Library!)[/size] The source and examples are in PASCAL both supported by Turbo Pascal, Free Pascal and Delphi[size=9px](with very little modification)[/size].