Exemplo n.º 1
0
        public override InterpBase VisitFunctionTop([NotNull] TesterParser.FunctionTopContext context)
        {
            var ident = context.Identifier().GetText();
            var body  = context.functionBody().Accept(this);

            m_core.Add(ident, body);

            return(null);
        }
Exemplo n.º 2
0
        public override string VisitFunctionTop([NotNull] TesterParser.FunctionTopContext context)
        {
            IndentLevel++;
            var temp = VisitChildren(context);

            IndentLevel--;

            return(string.Join(Environment.NewLine,
                               Indent() + "Function: " + context.Identifier().GetText(),
                               temp));
        }