public override string ToString() { if (IsAssignTo) { return(ValueExp.ToString() + "=>" + ToExp.ToString()); } else { return(ToExp.ToString() + "=" + ValueExp.ToString()); } }
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(); }
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()); }
public override string ToString() { return(NameToken.Text + ":" + ValueExp.ToString()); }