implement constructor call, eval and genasm are still stubs

This commit is contained in:
2020-02-14 13:06:20 +01:00
parent 317c2c52ca
commit 5c0459c5a2
8 changed files with 109 additions and 15 deletions

View File

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