Mercurial > lbo > hg > ylisp
changeset 48:4e4e38310ab1
gen/parse: Comment on confusing parameters
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Thu, 22 Aug 2019 11:04:13 +0200 |
parents | ff71c61a3cf9 |
children | 0d6b50b31ce3 |
files | gen/y.yy |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/y.yy Thu Aug 22 10:50:53 2019 +0200 +++ b/gen/y.yy Thu Aug 22 11:04:13 2019 +0200 @@ -25,8 +25,14 @@ %} %define parse.error verbose +%{ // The `scan` parameter is present in yyparse() as first argument and forwarded to yylex() as second argument. +%} %param {void* scan} + +%{ // The output_yexprs parameter is only present in yyparse() as second argument and used in actions. +%} %parse-param {yvec_t* output_yexprs} + %define api.pure full %define lr.type ielr