Permalink
Browse files

Another extract method to finish dbad7a

  • Loading branch information...
michaelgwelch committed Mar 22, 2012
1 parent 8f6ee03 commit 29900746cae42b30ed49deff6a0ef846efa9dfb6
Showing with 9 additions and 1 deletion.
  1. +9 −1 csharp/BrainmessShort/Main.cs
@@ -38,9 +38,17 @@ void JumpBackward()
pc = program.FindMatch(pc - 1);
}
bool EndOfProgram
{
get
{
return (pc >= program.Length);
}
}
public void Run()
{
while(pc < program.Length)
while(!EndOfProgram)
{
char instruction = Fetch();
switch(instruction)

0 comments on commit 2990074

Please sign in to comment.