summaryrefslogtreecommitdiff
path: root/submit/ast/VarType.java
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-04-23 00:24:42 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-04-23 00:24:42 -0600
commita1c15f046183373baf5deb66e77188e656806fb7 (patch)
treefc1a7f584e67dc583d335f09d5271a45ff7d9df4 /submit/ast/VarType.java
parent5f28f80c4e25a56cd444914c2f0b3da5e7fdb088 (diff)
downloadcminus-a1c15f046183373baf5deb66e77188e656806fb7.tar.gz
cminus-a1c15f046183373baf5deb66e77188e656806fb7.zip
squash all the thingsHEADmain
Diffstat (limited to 'submit/ast/VarType.java')
-rw-r--r--submit/ast/VarType.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/submit/ast/VarType.java b/submit/ast/VarType.java
index ba28946..e797d50 100644
--- a/submit/ast/VarType.java
+++ b/submit/ast/VarType.java
@@ -10,13 +10,13 @@ package submit.ast;
*/
public enum VarType {
- INT("int"), BOOL("bool"), CHAR("char");
+ INT("int"),
+ BOOL("bool"),
+ CHAR("char");
private final String value;
- private VarType(String value) {
- this.value = value;
- }
+ private VarType(String value) { this.value = value; }
public static VarType fromString(String s) {
for (VarType vt : VarType.values()) {
@@ -31,5 +31,4 @@ public enum VarType {
public String toString() {
return value;
}
-
}