summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-28 20:28:11 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-28 20:29:04 -0800
commit327be06f9e1741abb188bc1aa0df8a619972734b (patch)
treefa45972ef8a25fe5748bf31d56411bcf2374cc17 /src/main.c
parent010e64842352db62474f0c3a1d8a18207a547e14 (diff)
Removed old 'ast' format, now that we have 'xml'.
The xml representation of the AST is not quite as pretty, but it contains the same information and is not in an ad hoc format. See #53.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index be1bfd9..dfdba3c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -12,14 +12,13 @@ typedef enum {
FORMAT_HTML,
FORMAT_XML,
FORMAT_MAN,
- FORMAT_AST
} writer_format;
void print_usage()
{
printf("Usage: cmark [FILE*]\n");
printf("Options:\n");
- printf(" --to, -t FORMAT Specify output format (html, xml, man, ast)\n");
+ printf(" --to, -t FORMAT Specify output format (html, xml, man)\n");
printf(" --help, -h Print usage information\n");
printf(" --version Print version\n");
}
@@ -28,9 +27,6 @@ static void print_document(cmark_node *document, writer_format writer)
{
char *result;
switch (writer) {
- case FORMAT_AST:
- result = cmark_render_ast(document);
- break;
case FORMAT_HTML:
result = cmark_render_html(document);
break;
@@ -80,8 +76,6 @@ int main(int argc, char *argv[])
writer = FORMAT_HTML;
} else if (strcmp(argv[i], "xml") == 0) {
writer = FORMAT_XML;
- } else if (strcmp(argv[i], "ast") == 0) {
- writer = FORMAT_AST;
} else {
fprintf(stderr,
"Unknown format %s\n", argv[i]);