2023-04-10 11:17:11 -04:00
|
|
|
/*
|
|
|
|
* Code formatter project
|
|
|
|
* CS 4481
|
|
|
|
*/
|
|
|
|
package submit.ast;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author edwajohn
|
|
|
|
*/
|
|
|
|
public class CharConstant extends AbstractNode implements Expression {
|
|
|
|
private final char value;
|
|
|
|
|
2023-04-23 02:24:42 -04:00
|
|
|
public CharConstant(char value) { this.value = value; }
|
2023-04-10 11:17:11 -04:00
|
|
|
|
|
|
|
public void toCminus(StringBuilder builder, final String prefix) {
|
|
|
|
builder.append("'").append(value).append("'");
|
|
|
|
}
|
|
|
|
}
|