composeComp method
Implementation
void composeComp(StringBuffer buffer, Component comp) {
if (comp is Factor) {
composeFactor(buffer, comp);
} else if (comp is Symbol) {
composeSymbol(buffer, comp);
} else if (comp is Term) {
composeTerm(buffer, comp);
} else {
buffer.write('?');
}
}