Beispiel #1
0
        XSharpParserRuleContext buildTree(XSharpParser parser)
        {
            XSharpParserRuleContext tree;

            if (_isScript)
            {
                if (_isMacroScript)
                {
                    tree = parser.macroScript();
                }
                else
                {
                    tree = parser.script();
                }
            }
            else if (_options.Dialect == XSharpDialect.FoxPro)
            {
                tree = parser.foxsource();
            }
            else
            {
                tree = parser.source();
            }
            return(tree);
        }