Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public override void Print(IOutputBuffer buffer)
 {
     string lineText = string.Format("\t{0, -18} {1}", ">> string:", TokenString);
     buffer.PutLine(lineText);
 }