return new Variable(token.value);
}
@Override
public Unit script(String file) {
Unit unit = new Unit(file, ModuleDecl.DEFAULT);
Node parse = parse();
for (Node child : parse.children()) {
if (child instanceof FunctionDecl)
unit.declare((FunctionDecl) child);
else
unit.addToInitializer(child);
}
return unit;
}