TRD-0002 push latest
This commit is contained in:
@@ -194,6 +194,14 @@ namespace Axiom.Interpreter
|
||||
{
|
||||
SyntaxError("Encountered 'break' without 'while'");
|
||||
}
|
||||
if(breakStack.Count>0)
|
||||
{
|
||||
long codePointer = breakStack.Peek();
|
||||
if(codePointer.Equals(CodePointer()))
|
||||
{
|
||||
SyntaxError("Unexpected break encountered.");
|
||||
}
|
||||
}
|
||||
breakStack.Push(CodePointer());
|
||||
Expect(Scanner.ScanSymbols.break1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user