EOS 2  1.1.0
Einfache Objektbasierte Sprache
With.java
gehe zur Dokumentation dieser Datei
1 package de.lathanda.eos.baseparser;
2 
3 import java.util.ArrayList;
4 
5 import de.lathanda.eos.vm.Command;
6 
15 public class With extends Node {
16  private final Expression with;
17  private final Sequence sequence;
18 
19  public With(Expression with, Sequence sequence) {
20  this.with = with;
21  this.sequence = sequence;
22  }
23 
24  @Override
25  public void compile(ArrayList<Command> ops, boolean autoWindow) throws Exception {
26  sequence.compile(ops, autoWindow);
27  }
28 
29  @Override
30  public void resolveNamesAndTypes(Expression with, Environment env) {
31  sequence.resolveNamesAndTypes(this.with, env);
32  }
33 
34  @Override
35  public String toString() {
36  return "with " + with + "\n" + sequence + "endwith";
37  }
38 
39  @Override
40  public String getLabel() {
41  return null; // no label
42  }
43 }
void resolveNamesAndTypes(Expression with, Environment env)
Definition: Sequence.java:67
void compile(ArrayList< Command > ops, boolean autoWindow)
Definition: Sequence.java:53
void compile(ArrayList< Command > ops, boolean autoWindow)
Definition: With.java:25
void resolveNamesAndTypes(Expression with, Environment env)
Definition: With.java:30
With(Expression with, Sequence sequence)
Definition: With.java:19
Impressum