1 .\" $Id: mdoctree.1,v 1.4 2009/02/23 13:05:06 kristaps Exp $
3 .\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the
7 .\" above copyright notice and this permission notice appear in all
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11 .\" WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13 .\" AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14 .\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15 .\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16 .\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 .\" PERFORMANCE OF THIS SOFTWARE.
19 .Dd $Mdocdate: February 23 2009 $
25 .Nd mdoc macro compiler
38 manual pages and prints its syntax tree. It's commonly used to see the
39 syntax tree of a document when building new
41 utilities. The arguments are as follows:
42 .Bl -tag -width "\-Werr... "
45 Print verbose parsing output.
48 Print warning messages. May be set to
52 for groff/troff-compatibility warnings, or
54 for syntax warnings. If
56 is specified, warnings are considered errors and cause utility
59 arguments may be comma-separated, such as
60 .Fl W Ns Ar error,all .
73 utility is a formatting front-end for
81 into an abstract syntax tree.
86 reads from stdin and prints the syntax tree to stdout.
97 To validate this manual page:
100 .D1 % mdoctree \-Wall,error mdoctree.1
112 utility was written by
113 .An Kristaps Dzonsons Aq kristaps@kth.se .
118 for a list of bugs, caveats, and incomplete macros.