diff options
Diffstat (limited to 'src/ast/types/IntType.java')
| -rw-r--r-- | src/ast/types/IntType.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ast/types/IntType.java b/src/ast/types/IntType.java new file mode 100644 index 0000000..9f4b250 --- /dev/null +++ b/src/ast/types/IntType.java @@ -0,0 +1,10 @@ +package com.clp.project.ast.types; + +/** + * An integer type. + */ +public class IntType extends Type { + public String toPrint(String prefix) { + return prefix + "Int\n"; + } +} |
