This is the class responsible for the break keyword. Basic syntax: break;
Inheritance: Keyword
Exemplo n.º 1
0
        public override Expression Scan(ParseEngine engine)
        {
            var kw = new BreakKeyword(engine.CurrentLine, engine.CurrentColumn, engine.Query);
            engine.Advance(Token.Length);

            if (!IsBreakable(engine))
            {
                engine.AddError(new YAMPKeywordNotPossible(engine, Token), kw);
            }

            return kw;
        }
Exemplo n.º 2
0
        public override Expression Scan(ParseEngine engine)
        {
            var kw = new BreakKeyword(engine.CurrentLine, engine.CurrentColumn, engine.Query);

            engine.Advance(Token.Length);

            if (!IsBreakable(engine))
            {
                engine.AddError(new YAMPKeywordNotPossible(engine, Token), kw);
            }

            return(kw);
        }