Main Page

gram2html


One night I spent a few hours banging out a cruddy little Tcl script to read the output of bison-1.875 and cross-reference it with HTML annotations. However, what I really want is something that converts an arbitrary grammar file so that it looks like the beautiful HTML-ized grammars I found by searching the web.

Anyway, you can download a copy of the script here. I recommend using the "save link as" right-click menu item, as the embedded HTML tags in the script tend to activate the browser's HTML display routines. Some night I will obfuscate them a little so this doesn't happen. Oh well.


Back to the main toddpw.org home page
If you have comments or suggestions, email me at webmaster@toddpw.org