Bison itself could then use the spec's filename to help select a skeleton. This scheme would scale nicely to support other output languages (Java,
C#, etc) if bison were to include such skeletons one day.

I agree with idea, but it doesn't fit well with Make.  AFAIK you
can't define suffix-stripping rules, just suffix-changing rules.  And
you can't even try to include the .c part in the suffix:

.cc.bison.cc:

is something ambiguous.  Hm.  But using PREFIX, maybe it is not? Anyway,
this is not conventional...


Reply via email to