Пример #1
0
        // SyntaxList
        public bool TryParseDirectiveSyntaxList(Lexer lexer, out DirectiveSyntaxList result)
        {
            var list = new List <IDirectiveSyntaxListContent>(1024);

            while (lexer.CanRead())
            {
                {
                    if (this.TryParseDirectiveSyntax(lexer, out var r))
                    {
                        list.Add(r);
                        continue;
                    }
                }
            }

            result = new DirectiveSyntaxList(list);
            return(true);
        }         // Parse method end
Пример #2
0
        public TemplateSyntax(DirectiveSyntaxList Directives, TemplateBodySyntax TemplateBody)
        {
            this.Directives = Directives;

            this.TemplateBody = TemplateBody;
        }