Back to language description file page.

KindTran: Semantic Instruction Mnemos

MnemoParamsDescription
copydst,srccopy value from <src> to <dst>
movedst,srcmove value from <src> to <dst>; it is significant for identifiers and strings to distinguish between copy and move
pushsrcpushes given value onto stack
popdstpops value from stack
adddst,srcadds <src> to <dst>
subdst,srcsubtracts <src> from <dst>
muldst,srcmultiplies <src> to <dst>
fetchdstfetches a value from lexical analyzer to <dst>
putsrcputs given value to output
return-ends semantic action procedure/program

Currently no other instructions are supported. It is expected that there will be some for handling code generation, branching, table handling, etc. soon. But I have only two hands ... ;-)