public override void Print(IOutputBuffer buffer) { string line; if (Code == TTokenCode.Identifier) { line = string.Format("\t{0,-18} {1}", ">> identifier:", TokenString); } else { line = string.Format("\t{0, -18} {1}", ">> reserved word:", TokenString); } buffer.PutLine(line); }
public override void Print(IOutputBuffer buffer) { string lineText; if (type == TDataType.tyInteger) { lineText = string.Format("\t{0, -18} {1}", ">> integer:", value.integerValue); } else { lineText = string.Format("\t{0, -18} {1:g}", ">> real:", value.realValue); } buffer.PutLine(lineText); }
public override void Print(IOutputBuffer buffer) { string lineText = string.Format("\t{0, -18} {1}", ">> string:", TokenString); buffer.PutLine(lineText); }