01: /* -*- mode: Java; c-basic-offset: 2; -*- */
02:
03: /***
04: * Translator interface
05: */package org.openlaszlo.sc;
06:
07: import org.openlaszlo.sc.Instructions;
08: import org.openlaszlo.sc.parser.SimpleNode;
09: import java.util.*;
10:
11: public interface Translator {
12:
13: public TranslationContext getContext();
14:
15: public Compiler.OptionMap getOptions();
16:
17: public void setOptions(Compiler.OptionMap options);
18:
19: public SimpleNode translate(SimpleNode program);
20:
21: public InstructionCollector getCollector();
22:
23: public String newLabel(SimpleNode node);
24:
25: public void unwindEnumeration(SimpleNode node);
26:
27: }
|