Reduce the differences between yaccpar and yaccpars.
Add support for passing an argument through yyparse to yylex.
This commit is contained in:
parent
5ddc97fc3e
commit
cae9bfe9da
4 changed files with 146 additions and 38 deletions
|
|
@ -86,6 +86,15 @@ Stdio
|
|||
instead of the
|
||||
.B print
|
||||
routines in libc.
|
||||
.TP
|
||||
.BI -l
|
||||
Disable #line directives in the generated parser.
|
||||
.TP
|
||||
.BI -a
|
||||
Generate a parser that takes an argument of type Yyarg
|
||||
and passes this argument to each invocation of the lexer
|
||||
function, yylex. Yyarg contains per-instance state
|
||||
and a single user-visible member, arg, of type void*.
|
||||
.PP
|
||||
The specification of
|
||||
.I yacc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue