Added more precise info about parameters
This commit is contained in:
commit
2b0a61d143
|
@ -338,7 +338,12 @@ grammar rule.
|
||||||
.PP
|
.PP
|
||||||
In order to facilitate communication between the actions and
|
In order to facilitate communication between the actions and
|
||||||
\fILLparse\fR,
|
\fILLparse\fR,
|
||||||
the parsing routines can be given C-like parameters. So, for example
|
the parsing routines can be given C-like parameters.
|
||||||
|
Each parameter must be declared separately, and each of these declarations must
|
||||||
|
end with a semicolon.
|
||||||
|
For the last parameter, the semicolon is optional.
|
||||||
|
.PP
|
||||||
|
So, for example
|
||||||
.nf
|
.nf
|
||||||
.ft CW
|
.ft CW
|
||||||
.sp 1
|
.sp 1
|
||||||
|
@ -921,7 +926,7 @@ stat { int ident, val; } :
|
||||||
| '\en'
|
| '\en'
|
||||||
;
|
;
|
||||||
|
|
||||||
expr(int level, int *val;) { int expr; } :
|
expr(int level; int *val;) { int expr; } :
|
||||||
factor(val)
|
factor(val)
|
||||||
[ %while (prio(tok.t_tokno) >= level)
|
[ %while (prio(tok.t_tokno) >= level)
|
||||||
/* Swallow operators as long as their priority is
|
/* Swallow operators as long as their priority is
|
||||||
|
|
Loading…
Reference in a new issue