From d3396a5f08e14a1c6649c3296ff93b5fc7b0febf Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Tue, 28 Oct 2008 18:33:47 +0000 Subject: [PATCH] migration svn path=/trunk/mcs/; revision=117287 --- mcs/tools/mdoc/Mono.Documentation/dump.cs | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 mcs/tools/mdoc/Mono.Documentation/dump.cs diff --git a/mcs/tools/mdoc/Mono.Documentation/dump.cs b/mcs/tools/mdoc/Mono.Documentation/dump.cs new file mode 100644 index 00000000000..2223c422855 --- /dev/null +++ b/mcs/tools/mdoc/Mono.Documentation/dump.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections; + +namespace Monodoc { +class Dump { + + static void Usage () + { + Console.WriteLine ("Usage is: dump file.tree"); + } + + static int Main (string [] args) + { + int argc = args.Length; + Tree t = null; + + for (int i = 0; i < argc; i++){ + string arg = args [i]; + + switch (arg){ + + default: + if (t == null) + t = new Tree (null, arg); + break; + } + } + + if (t != null) + Node.PrintTree (t); + + return 0; + } +} +} -- 2.25.1