Utility to format a Bison/Yacc grammar file nicely? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
开发者_JAVA百科 Improve this questionHello there: Do you folks know of any GNU/Linux utility to format a Bison grammar file, containing C code, nicely? I'm thinking of something along the lines of GNU Indent, but designed to beautify grammar files rather than C code.
Well, there's also an answer about Indenting in VIM with all the files in Folder, so if vim does a good enough job for you, you could use that.
This is not a tool for indenting - but it will take your bison file and generate a nice railroad diagram for you - http://www.bottlecaps.de/rr/ui
example of it being used: http://bramp.github.io/js-sequence-diagrams/#syntax
精彩评论