Пример #1
0
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder(var.ToString());

            if (arg != null)
            {
                builder.Append(' ');
                builder.Append(op.ToString(true, arg != null));
                builder.Append(arg.ToString());
            }
            else
            {
                builder.Append(op.ToString(true, arg != null));                //a++とか。HSPではこの辺の書式はいい加減みたい。
            }
            return(builder.ToString());
        }
Пример #2
0
        public void ToStringTest()
        {
            var token = new VariableToken("x");

            Assert.Equal("Variable: x", token.ToString());
        }