Esempio n. 1
0
        public ControlBlock(ControlBlockTagOpenToken StartToken, ControlBlockStream Contents, BlockTagCloseToken EndToken)
        {
            this.StartToken = StartToken;

            this.Contents = Contents;

            this.EndToken = EndToken;
        }
Esempio n. 2
0
        // Token
        public bool TryParseControlBlockTagOpenToken(Lexer lexer, out ControlBlockTagOpenToken result)
        {
            var next = lexer.Next();

            if (next.Text == "<#")
            {
                result = new ControlBlockTagOpenToken(next);
                return(true);
            }

            result = null;
            return(false);
        }         // Parse method end