BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
583 stars 162 forks source link

Backends: sign generated file with BNFC's version number #373

Closed andreasabel closed 3 years ago

andreasabel commented 3 years ago

Printing "generated by BNFC" is now taking place uniformly in Backend.Base, rather than in the individual backends. The backends need to supply a comment-creating function to mkfile. The BNFC-signature includes now BNFC's version number.

.txt files are signed at the end since txt2tags treats the first lines special (as headings).

Otoh, JLex only accepts comments at the beginning (the Java preamble).

So, the default remains to sign at the beginning, which is also more customary.