public bool VisitBoolean(BooleanDatum d) { if (d.Value) { bw.Write(B_BOOLEAN_TRUE); } else { bw.Write(B_BOOLEAN_FALSE); } return(true); }
public State VisitBoolean(State state, BooleanDatum d) => state;
public string VisitBoolean(BooleanDatum d) { return(d.Value ? "#t" : "#f"); }
public SetDatum VisitBoolean(BooleanDatum d) => SetDatum.Empty;
public string VisitBoolean(BooleanDatum d) { return("b" + d.Value); }
private bool EqualBoolean(BooleanDatum x, BooleanDatum y) { return(x.Value == y.Value); }
private int CompareBoolean(BooleanDatum x, BooleanDatum y) { return(x.Value ? (y.Value ? 0 : 1) : (y.Value ? -1 : 0)); }