Exemplo n.º 1
0
 public void RegisterGoto(string token, JumpToken gotoToken)
 {
     contexts.Peek().RegisterGoto(token, gotoToken);
 }
Exemplo n.º 2
0
 public abstract void JumpIfNotMarked(JumpToken token);
Exemplo n.º 3
0
 public void RegisterGoto(string token, JumpToken gotoToken)
 {
     Require.False(gotos.ContainsKey(token));
     gotos.Add(token, gotoToken);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Assosiates a JumpToken with a location in the code stream.
 /// </summary>
 public abstract void SetDestination(JumpToken token);
Exemplo n.º 5
0
 /// <summary>
 /// Conditional version of Jump().
 /// Takes the jump if the type part of the accumulator is empty
 /// </summary>
 public abstract void JumpIfUnassigned(JumpToken token);
Exemplo n.º 6
0
 /// <summary>
 /// Conditional version of Jump().
 /// Reads a boolean value from the accumulator
 /// </summary>
 public abstract void JumpIfFalse(JumpToken token);
Exemplo n.º 7
0
 /// <summary>
 /// Conditional version of Jump().
 /// Reads a boolean value from the accumulator
 /// </summary>
 public abstract void JumpIfTrue(JumpToken token);
Exemplo n.º 8
0
 /// <summary>
 /// Inserts an unconditional jump to the location described by the jump token.
 /// This may be a forward or backward jump, but should be local to the Assembler.
 /// </summary>
 public abstract void Jump(JumpToken token);