示例#1
0
 public override string ToString()
 {
     if (IsAssignTo)
     {
         return(ValueExp.ToString() + "=>" + ToExp.ToString());
     }
     else
     {
         return(ToExp.ToString() + "=" + ValueExp.ToString());
     }
 }
示例#2
0
		private String Path(ValueExp exp)
		{
			StringBuilder sb = new StringBuilder();

			if (exp is DotExp)
			{
				sb.Append(Path((exp as DotExp).m_left));
				sb.Append('.');
				sb.Append(Path((exp as DotExp).m_right));
			}
			else if (exp is VariableExp)
			{
				sb.Append((exp as VariableExp).m_name);
			}
			else
			{
				sb.Append(exp.ToString());
			}

			return sb.ToString();
		}
示例#3
0
        private String Path(ValueExp exp)
        {
            StringBuilder sb = new StringBuilder();

            if (exp is DotExp)
            {
                sb.Append(Path((exp as DotExp).m_left));
                sb.Append('.');
                sb.Append(Path((exp as DotExp).m_right));
            }
            else if (exp is VariableExp)
            {
                sb.Append((exp as VariableExp).m_name);
            }
            else
            {
                sb.Append(exp.ToString());
            }

            return(sb.ToString());
        }
示例#4
0
 public override string ToString()
 {
     return(NameToken.Text + ":" + ValueExp.ToString());
 }