开发者

Utility to format a Bison/Yacc grammar file nicely? [closed]

开发者 https://www.devze.com 2023-01-03 12:40 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

Hello 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号