X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/09ccae9b18a7c09ebf7bb8df2a18c8c4a6def248..2c086d295967986a261ef6c2729b9edb62aac451:/doc/bison.texinfo diff --git a/doc/bison.texinfo b/doc/bison.texinfo index ae3dc4b0..70f62672 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -8620,6 +8620,7 @@ exp: exp '+' exp @{ $$ = $1 + $3; @} | exp '-' exp @{ $$ = $1 - $3; @} | exp '*' exp @{ $$ = $1 * $3; @} | exp '/' exp @{ $$ = $1 / $3; @} + | '(' exp ')' @{ $$ = $2; @} | "identifier" @{ $$ = driver.variables[*$1]; delete $1; @} | "number" @{ $$ = $1; @}; %% @@ -8724,7 +8725,7 @@ It is convenient to use a typedef to shorten typedef yy::calcxx_parser::token token; %@} /* Convert ints to the actual type of tokens. */ -[-+*/] return yy::calcxx_parser::token_type (yytext[0]); +[-+*/()] return yy::calcxx_parser::token_type (yytext[0]); ":=" return token::ASSIGN; @{int@} @{ errno = 0;