Search in sources :

Example 1 with GotoIR

use of com.googlecode.aviator.code.interpreter.ir.GotoIR in project aviatorscript by killme2008.

the class InterpretCodeGenerator method onTernaryLeft.

@Override
public void onTernaryLeft(final Token<?> lookhead) {
    this.instruments.add(new GotoIR(peekLabel1(), new SourceInfo(this.sourceFile, lookhead.getLineNo())));
    // emit(PopIR.INSTANCE);
    Label label0 = popLabel0();
    visitLabel(label0);
    emit(PopIR.INSTANCE);
}
Also used : SourceInfo(com.googlecode.aviator.code.interpreter.ir.SourceInfo) GotoIR(com.googlecode.aviator.code.interpreter.ir.GotoIR) Label(com.googlecode.aviator.code.interpreter.ir.Label)

Aggregations

GotoIR (com.googlecode.aviator.code.interpreter.ir.GotoIR)1 Label (com.googlecode.aviator.code.interpreter.ir.Label)1 SourceInfo (com.googlecode.aviator.code.interpreter.ir.SourceInfo)1