StringBuilder sb = new StringBuilder();
for (String s : context.keySet()) {
if (simple && s.contains("$")) {
continue;
}
BytecodeValue val = context.get(s);
if (val instanceof BytecodeFunction) {
sb.append(s + val + "\n");
} else {
sb.append(s + " = " + val + "\n");
}