Search in sources :

Example 1 with EmptyProgram

use of programReduction.Program.EmptyProgram in project L42 by ElvisResearchGroup.

the class Translator method addP.

public static void addP(int level, Program p, Map<String, ClassB> map, Program original) {
    add(level, Collections.emptyList(), p.top(), map, original);
    Program popped;
    try {
        popped = p.pop();
    } catch (EmptyProgram ep) {
        return;
    }
    addP(level + 1, popped, map, original);
}
Also used : Program(programReduction.Program) EmptyProgram(programReduction.Program.EmptyProgram) EmptyProgram(programReduction.Program.EmptyProgram)

Aggregations

Program (programReduction.Program)1 EmptyProgram (programReduction.Program.EmptyProgram)1