Example #1
0
 public void RegisterGoto(string token, JumpToken gotoToken)
 {
     contexts.Peek().RegisterGoto(token, gotoToken);
 }
Example #2
0
 public abstract void JumpIfNotMarked(JumpToken token);
Example #3
0
 public void RegisterGoto(string token, JumpToken gotoToken)
 {
     Require.False(gotos.ContainsKey(token));
     gotos.Add(token, gotoToken);
 }
Example #4
0
 /// <summary>
 /// Assosiates a JumpToken with a location in the code stream.
 /// </summary>
 public abstract void SetDestination(JumpToken token);
Example #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);
Example #6
0
 /// <summary>
 /// Conditional version of Jump().
 /// Reads a boolean value from the accumulator
 /// </summary>
 public abstract void JumpIfFalse(JumpToken token);
Example #7
0
 /// <summary>
 /// Conditional version of Jump().
 /// Reads a boolean value from the accumulator
 /// </summary>
 public abstract void JumpIfTrue(JumpToken token);
Example #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);