package graef.foltk.formula.parser;

import graef.foltk.formula.ast.AstNode;
import graef.foltk.formula.ast.AstVisitor;
import graef.foltk.formula.lexer.Token;

public class Import extends AstNode {
	private final String unitName;
	
	public Import(Token token, String unitName) {
		super(token);
	}

	public String toString() {
		return "import \"" + unitName + "\"";
	}

	@Override
	public void accept(AstVisitor visitor) {
		visitor.visit(this);
	}
}

@@ -289,16 +289,44 @@
 token);%0A
+%09%09this.unitName = unitName;%0A
 %09%7D%0A%0A%09pub

initialize unitName attribute