Skip to content
Snippets Groups Projects
Commit 20bea3e0 authored by lucien.noel's avatar lucien.noel
Browse files

j'avais oublié les \n dans Ecrire

parent 0b4c3a35
No related branches found
No related tags found
No related merge requests found
......@@ -84,10 +84,10 @@ public class ByteCodeGenerator implements ASTVisitor {
public Object visit(Ecrire node) {
node.getSource().accept(this);
bytecode+="getstatic java/lang/System/out Ljava/io/PrintStream;";
bytecode+="getstatic java/lang/System/out Ljava/io/PrintStream;\n";
String toWrite = getValueInExpressionToString(node.getSource());
bytecode+="ldc "+toWrite;
bytecode+="invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V";
bytecode+="ldc "+toWrite+"\n";
bytecode+="invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V\n";
return null; }
public Object visit(Egal node) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment