T
thomas
hello I m writing a simple parser using bison. I just used someone's else
c++ grammar, to produce a code beutifier. The thing is , most of the actions
for productions would have form
{$$ = $1 + $2 + $3} and so forth depending on number of terminals in
production. Is it possible to set default action for all the productions
like the one above ? It is something strange to type this formula for over
200 productions.
c++ grammar, to produce a code beutifier. The thing is , most of the actions
for productions would have form
{$$ = $1 + $2 + $3} and so forth depending on number of terminals in
production. Is it possible to set default action for all the productions
like the one above ? It is something strange to type this formula for over
200 productions.