blob: a0ccb37c797fe8103d97313588890b4166fedf33 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Code formatter project
* CS 4481
*/
package submit.ast;
/**
*
* @author edwajohn
*/
public class CharConstant implements Expression, Constant {
private final char value;
public CharConstant(char value) {
this.value = value;
}
public void toCminus(StringBuilder builder, final String prefix) {
builder.append("'").append(value).append("'");
}
}
|