예제 #1
0
 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;
예제 #5
0
 public string VisitBoolean(BooleanDatum d)
 {
     return("b" + d.Value);
 }
 private bool EqualBoolean(BooleanDatum x, BooleanDatum y)
 {
     return(x.Value == y.Value);
 }
예제 #7
0
 private int CompareBoolean(BooleanDatum x, BooleanDatum y)
 {
     return(x.Value ? (y.Value ? 0 : 1) : (y.Value ? -1 : 0));
 }