Esempio n. 1
0
        public override int Compile(FunctionContext context)
        {
            context.Position(Token);

            var target = context.ContinueLabel();

            if (target == null)
            {
                throw new MondCompilerException(this, CompilerError.UnresolvedJump);
            }

            return(context.Jump(target));
        }
Esempio n. 2
0
        public override int Compile(FunctionContext context)
        {
            context.Line(FileName, Line);

            var target = context.ContinueLabel();

            if (target == null)
            {
                throw new MondCompilerException(FileName, Line, CompilerError.UnresolvedJump);
            }

            return(context.Jump(target));
        }
Esempio n. 3
0
 public override LabelOperand ContinueLabel()
 {
     return(_parent.ContinueLabel());
 }