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

            this.Contents = Contents;

            this.EndToken = EndToken;
        }
Example #2
0
        public ClassFeatureBlock(ClassFeatureBlockOpenTagToken StartToken, ControlBlockStream Contents, BlockTagCloseToken EndToken)
        {
            this.StartToken = StartToken;

            this.Contents = Contents;

            this.EndToken = EndToken;
        }
Example #3
0
        public DirectiveSyntax(DirectiveBlockTagOpenToken StartToken, DirectiveContentsSyntax Contents, BlockTagCloseToken EndToken)
        {
            this.StartToken = StartToken;

            this.Contents = Contents;

            this.EndToken = EndToken;
        }
Example #4
0
        // Token
        public bool TryParseBlockTagCloseToken(Lexer lexer, out BlockTagCloseToken result)
        {
            var next = lexer.Next();

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

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