summaryrefslogtreecommitdiff
path: root/submit/ast/CharConstant.java
blob: 5334be28a3c6527efab364b06a67cf1d91b68943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Code formatter project
 * CS 4481
 */
package submit.ast;

/**
 *
 * @author edwajohn
 */
public class CharConstant extends AbstractNode implements Expression {
  private final char value;

  public CharConstant(char value) { this.value = value; }

  public void toCminus(StringBuilder builder, final String prefix) {
    builder.append("'").append(value).append("'");
  }
}