Search in sources :

Example 1 with RuntimeService

use of priv.bajdcc.LALR1.grammar.runtime.service.RuntimeService in project jMiniLang by bajdcc.

the class RuntimeProcess method initMainProcess.

private void initMainProcess(String name, InputStream input) throws Exception {
    this.arrProcess = new SchdProcess[MAX_PROCESS];
    this.name = name;
    this.codePage = RuntimeCodePage.importFromStream(input);
    this.arrCodes = new HashMap<>();
    this.arrPages = new HashMap<>();
    this.setProcessId = new HashSet<>();
    this.service = new RuntimeService(this);
    RuntimeMachine machine = new RuntimeMachine(name, cyclePtr, -1, this);
    machine.initStep(name, codePage, Collections.emptyList(), 0, null);
    setProcessId.add(cyclePtr);
    arrProcess[cyclePtr++] = new SchdProcess(machine);
}
Also used : RuntimeService(priv.bajdcc.LALR1.grammar.runtime.service.RuntimeService)

Aggregations

RuntimeService (priv.bajdcc.LALR1.grammar.runtime.service.RuntimeService)1