diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2024-06-13 09:00:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 09:00:06 +0000 |
| commit | 8e7089a5d6ba1f4f50a90133bb50bc5c6c554aff (patch) | |
| tree | d4a627e56a199720f7d811af5756402e76628864 /src/ast/types/IntType.java | |
| parent | 1c8761901b26c0be4d61f3aed5ec0495a558a0e7 (diff) | |
Set up visitor (#3)
Co-authored-by: geno <gabriele.genovese2@studio.unibo.it>
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"; + } +} |
