From 67541062093846bb53f011da0f4d489d63375d2d Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Mon, 15 Oct 2018 12:26:27 +0200 Subject: [PATCH] Added a rudimentare manpage --- doc/yapps2.man | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/yapps2.man diff --git a/doc/yapps2.man b/doc/yapps2.man new file mode 100644 index 0000000..a8d0e63 --- /dev/null +++ b/doc/yapps2.man @@ -0,0 +1,35 @@ +.TH YAPPS2 1 +.SH NAME +yapps2 \- generate python parser code from grammar description file +.SH SYNOPSIS +.B yapps2 +[\fB\-h\fR] +[\fB\-i\fR, \fB\-\-context-insensitive-scanner\fR] +[\fB\-t\fR, \fB\-\-indent-with-tabs\fR] +[\fB\-\-dump\fR] +.IR grammar_file [ parser_file ] +.SH DESCRIPTION +.B yapps2 +generates python parser code from a grammar description file. +.SH OPTIONS +.TP +.BR \-h ", " \-\-help\fR +show a help message and exit +.TP +.BR \-i ", " \-\-context-insensitive-scanner\fR +Scan all tokens. See the documentation for details. +.TP +.BR \-t ", " \-\-indent-with-tabs\fR +Use tabs instead of four spaces for indentation in generated code. +.TP +.BR \-\-dump\fR +Dump out grammar information. +.TP +.BR grammar_file +grammar description file (input) +.TP +.BR parser_file +Name of the output file to be generated. +.BR +The grammar file's name, with .py appended, will be used, if omitted. +\"-\" or \"/dev/stdout\" can be used to send generated code to stdout.