dajobe / raptor

Redland Raptor RDF syntax library
https://librdf.org/raptor/
Other
157 stars 62 forks source link

Update bison usage #43

Closed akimd closed 4 years ago

akimd commented 4 years ago

Hi,

Here are a few minor changes which, I believe, somewhat simplifies the Bison parts. The changes in fix-bison are easier to read with whitespace changes ignored.

Cheers!

dajobe commented 4 years ago

I like the approach but I'll have ot check it out. When did the thing get added to bison? Does that affect the min version?

akimd commented 4 years ago

Hi Dave, %define parse.error verbose was introduced in Bison 3.0, and per-type destructors/printers in Bison 2.4. The fact that you don't need to repeat %token/%type etc. for each batch of types and symbols has been there for ever. Cheers!