diff options
| author | L0P0P <grassoemanuele@live.com> | 2024-06-27 10:02:35 +0000 |
|---|---|---|
| committer | L0P0P <grassoemanuele@live.com> | 2024-06-27 10:02:35 +0000 |
| commit | 3c4229fc9e0ec6da9a7f60b57b9e93c49d1b6b6c (patch) | |
| tree | aca198eca62a0260a50ea59003c44a942e98f521 /src/ast/types | |
| parent | fb89b8c0885ee4e289cfb577bbabf0ee66b05024 (diff) | |
Fixed a lot of problems from all the progs we need to parse
Diffstat (limited to 'src/ast/types')
| -rw-r--r-- | src/ast/types/ContinueBreakType.java | 10 | ||||
| -rw-r--r-- | src/ast/types/ImportType.java | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/ast/types/ContinueBreakType.java b/src/ast/types/ContinueBreakType.java new file mode 100644 index 0000000..dfcf1f2 --- /dev/null +++ b/src/ast/types/ContinueBreakType.java @@ -0,0 +1,10 @@ +package ast.types; + +/** + * A type for the continue and break statements. + */ +public class ContinueBreakType extends Type { + public String toPrint(String prefix) { + return prefix + "ContinueBreak\n"; + } +} diff --git a/src/ast/types/ImportType.java b/src/ast/types/ImportType.java new file mode 100644 index 0000000..6852bfa --- /dev/null +++ b/src/ast/types/ImportType.java @@ -0,0 +1,11 @@ +package ast.types; + +/** + * A type for the imported names. + */ +public class ImportType extends Type { + public String toPrint(String prefix) { + return prefix + "Import\n"; + } +} + |
