Skip to content

Commit

Permalink
Added a rudimentare manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Oct 15, 2018
1 parent 9803f6c commit 6754106
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions doc/yapps2.man
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 6754106

Please sign in to comment.