implemented variables and function call evaluation

This commit is contained in:
2019-11-18 18:02:10 +01:00
parent 13caee0667
commit b38369b7a5
6 changed files with 127 additions and 45 deletions

View File

@@ -0,0 +1,18 @@
package de.hsrm.compiler.Klang.nodes.expressions;
import de.hsrm.compiler.Klang.visitors.Visitor;
public class Variable extends Expression {
public String name;
public Variable(String name) {
this.name = name;
}
@Override
public <R> R welcome(Visitor<R> v) {
return v.visit(this);
}
}