Package ch.snowdon.minijava.sline.model.stm

Examples of ch.snowdon.minijava.sline.model.stm.CompoundStm.interpret()


                OpExp.Op.MINUS, new NumExp(1))))), new OpExp(
            new NumExp(10), OpExp.Op.TIMES, new IdExp("a")))),
        new PrintStm(new LastExpList(new IdExp("b")))));
   
    System.out.println("First prog:");
    prog.interpret();
    System.out.println();
   
    prog = new PrintStm(new PairExpList(new IdExp("a"),
        new LastExpList(new EseqExp(new PrintStm(new PairExpList(
            new IdExp("c"), new PairExpList(new IdExp("d"),
View Full Code Here


                new PairExpList(new IdExp("d"),
                    new LastExpList(new NumExp(3)))))),
            new IdExp("b")))));
   
    System.out.println("Second prog:");
    prog.interpret();

  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.