From: Ian R. <id...@us...> - 2005-04-06 16:58:14
|
Philip RIDEOUT wrote: > 3) Lack of error rules in the grammar to help recovery from syntax errors. > > It's desirable to keep the grammar simple to help readability in our reference implementation, but I > agree this would be a nice feature. Bison is a relatively unsophisticated tool by modern standards, > which I think prevents us from checking for some types of frequently-made syntax errors (they'd > cause shift-reduce conflicts, etc). To do this, we'd have to use something better than bison, or an > additional tool like Merr. We want the parser to gain wide acceptance, so we use bison because it's > so standard. I agree that this is a two-edged sword. Does the parser actually /require/ bison or will byacc also work? I only ask because bison has the "interesting quirk" of requiring the application link with *GPL* (*not* LGPL) licensed code. This means that any drivers (or Mesa) that use bison auto-magically become GPL. Good times. |