예제 #1
0
 public void RegisterGoto(string token, JumpToken gotoToken)
 {
     contexts.Peek().RegisterGoto(token, gotoToken);
 }
예제 #2
0
파일: Assembler.cs 프로젝트: bartwe/plukc
 public abstract void JumpIfNotMarked(JumpToken token);
예제 #3
0
 public void RegisterGoto(string token, JumpToken gotoToken)
 {
     Require.False(gotos.ContainsKey(token));
     gotos.Add(token, gotoToken);
 }
예제 #4
0
파일: Assembler.cs 프로젝트: bartwe/plukc
 /// <summary>
 /// Assosiates a JumpToken with a location in the code stream.
 /// </summary>
 public abstract void SetDestination(JumpToken token);
예제 #5
0
파일: Assembler.cs 프로젝트: bartwe/plukc
 /// <summary>
 /// Conditional version of Jump().
 /// Takes the jump if the type part of the accumulator is empty
 /// </summary>
 public abstract void JumpIfUnassigned(JumpToken token);
예제 #6
0
파일: Assembler.cs 프로젝트: bartwe/plukc
 /// <summary>
 /// Conditional version of Jump().
 /// Reads a boolean value from the accumulator
 /// </summary>
 public abstract void JumpIfFalse(JumpToken token);
예제 #7
0
파일: Assembler.cs 프로젝트: bartwe/plukc
 /// <summary>
 /// Conditional version of Jump().
 /// Reads a boolean value from the accumulator
 /// </summary>
 public abstract void JumpIfTrue(JumpToken token);
예제 #8
0
파일: Assembler.cs 프로젝트: bartwe/plukc
 /// <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);