diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/GRECS_SETUP.3 | 8 | ||||
-rw-r--r-- | doc/grecs_parse.3 | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/doc/GRECS_SETUP.3 b/doc/GRECS_SETUP.3 index c24399e..13b568e 100644 --- a/doc/GRECS_SETUP.3 +++ b/doc/GRECS_SETUP.3 @@ -14,7 +14,7 @@ .\" You should have received a copy of the GNU General Public License .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. .\" -.TH GRECS_SETUP 3 "May 8, 2011" "GRECS" "Grecs User Reference" +.TH GRECS_SETUP 3 "May 15, 2011" "GRECS" "Grecs User Reference" .SH NAME GRECS_SETUP \- Initialize \fBgrecs\fR submodule. .SH SYNOPSIS @@ -44,6 +44,12 @@ The argument is a space-separated list of options. The following options are understood: .TP +.B all-parsers +Compile all available parsers. +.TP +.B parser-meta1 +Build the parser for MeTA1 configuration files. +.TP .B no-preproc Disable the use of preprocessor. .TP diff --git a/doc/grecs_parse.3 b/doc/grecs_parse.3 index 2abc417..dff6759 100644 --- a/doc/grecs_parse.3 +++ b/doc/grecs_parse.3 @@ -149,13 +149,11 @@ screen: int main(int argc, char **argv) { - struct grecs_node *tree, *node; + struct grecs_node *tree; tree = grecs_parse(argv[1]); - for (node = tree; node; node = node->next) { - grecs_format_node(node, GRECS_NODE_FLAG_DEFAULT, stdout); - fputc('\n', stdout); - } + grecs_format_node(tree, GRECS_NODE_FLAG_DEFAULT, stdout); + fputc('\\n', stdout); grecs_tree_free(tree); exit(0); } |