Exemplo n.º 1
0
        private static SyntaxNode RepeatStatement(RParser.RepeatStatementContext repeatStatement, Func <ParserRuleContext, Scope, SyntaxNode> transform, Scope scope)
        {
            if (!topLevel(repeatStatement))
            {
                throw new NotImplementedException();
            }

            BlockSyntax body = parseBlock(repeatStatement.expr(), transform, scope);

            return(repeat
                   .WithStatement(body));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="RParser.RepeatStatement"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitRepeatStatement([NotNull] RParser.RepeatStatementContext context)
 {
 }