equal
deleted
inserted
replaced
32 case object False extends BExp |
32 case object False extends BExp |
33 case class Bop(o: String, a1: AExp, a2: AExp) extends BExp |
33 case class Bop(o: String, a1: AExp, a2: AExp) extends BExp |
34 |
34 |
35 |
35 |
36 // compiler headers needed for the JVM |
36 // compiler headers needed for the JVM |
37 // (contains an init method, as well as methods for read and write) |
37 // (contains methods for read and write) |
38 val beginning = """ |
38 val beginning = """ |
39 .class public XXX.XXX |
39 .class public XXX.XXX |
40 .super java/lang/Object |
40 .super java/lang/Object |
41 |
|
42 .method public <init>()V |
|
43 aload_0 |
|
44 invokenonvirtual java/lang/Object/<init>()V |
|
45 return |
|
46 .end method |
|
47 |
41 |
48 .method public static write(I)V |
42 .method public static write(I)V |
49 .limit locals 1 |
43 .limit locals 1 |
50 .limit stack 2 |
44 .limit stack 2 |
51 getstatic java/lang/System/out Ljava/io/PrintStream; |
45 getstatic java/lang/System/out Ljava/io/PrintStream; |