summaryrefslogtreecommitdiffstats
path: root/src/Compiler/Statement.java
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-07 01:23:19 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-07 01:23:19 +0000
commitf8b888716211b78900db62ede497fa4ac2100c00 (patch)
tree3ea66c732de6abb95b10e708d0ab33651cb6b327 /src/Compiler/Statement.java
parentd3046e3b1481cf6d190b8fcb814985e29852b5eb (diff)
downloadesotericFORTRAN-f8b888716211b78900db62ede497fa4ac2100c00.tar.gz
esotericFORTRAN-f8b888716211b78900db62ede497fa4ac2100c00.zip
Basic floating point support and small improvements to error handing
Diffstat (limited to 'src/Compiler/Statement.java')
-rw-r--r--src/Compiler/Statement.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Compiler/Statement.java b/src/Compiler/Statement.java
index 6b58878..a74009d 100644
--- a/src/Compiler/Statement.java
+++ b/src/Compiler/Statement.java
@@ -37,12 +37,14 @@ abstract class Statement {
static class VariableDeclaration extends Statement{
- VariableDeclaration(Token name){
+ VariableDeclaration(Token name,String type){
this.name=name;
+ this.type=type;
}
final Token name;
+ final String type;
@Override
public String getStatmentType() {