Exemple #1
0
        public DirectiveSyntax(DirectiveBlockTagOpenToken StartToken, DirectiveContentsSyntax Contents, BlockTagCloseToken EndToken)
        {
            this.StartToken = StartToken;

            this.Contents = Contents;

            this.EndToken = EndToken;
        }
Exemple #2
0
        // Token
        public bool TryParseDirectiveBlockTagOpenToken(Lexer lexer, out DirectiveBlockTagOpenToken result)
        {
            var next = lexer.Next();

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

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