Ejemplo n.º 1
0
        private Node iterateWrapper(ParserRuleContext ctx, Visitor visitor, Node parent)
        {
            IterateOverContext it = new IterateOverContext(this);

            it.iterateOverChildren(ctx, visitor, parent);
            return(parent);
        }
Ejemplo n.º 2
0
        public override Node visitPrimitives(JuliarParser.PrimitivesContext ctx)
        {
            PrimitiveNode      primitiveNode = new PrimitiveNode();
            IterateOverContext context       = new IterateOverContext(this);

            context.iterateOverChildren(ctx, this, primitiveNode);
            return(primitiveNode);
        }
Ejemplo n.º 3
0
        public override Node visitTypes(JuliarParser.TypesContext ctx)
        {
            IntegralTypeNode integralTypeNode = new IntegralTypeNode();

            IterateOverContext context = new IterateOverContext(this);

            context.iterateOverChildren(ctx.primitiveTypes(), this, integralTypeNode);

            return(integralTypeNode);
        }