コード例 #1
0
ファイル: Parser.cs プロジェクト: TechnoLingua/NeoEdit
        static public string Reformat(ParserNode node, string input, ParserType parserType)
        {
            switch (parserType)
            {
            case ParserType.HTML: return(HTMLVisitor.Format(node, input));

            case ParserType.JSON: return(JSONVisitor.Format(node, input));

            case ParserType.XML: return(XMLVisitor.Format(node, input));

            default: throw new Exception("Unable to reformat this type");
            }
        }