From 517aa278ec8b8be54f513df556dae404f910c12b Mon Sep 17 00:00:00 2001 From: timv Date: Wed, 12 Dec 2012 16:46:50 -0500 Subject: [PATCH] working on some javascript hacks to help us manage our compiler output. --- bin/prototype.py | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/bin/prototype.py b/bin/prototype.py index 2f26a42..cde9e52 100644 --- a/bin/prototype.py +++ b/bin/prototype.py @@ -205,12 +205,42 @@ def main(dynafile): print >> html, '' + print >> html, """\ + + + +""" + print >> html, '

%s

' % dynafile print >> html, '

Dyna source

' - print >> html, '
\n%s\n
' % code.strip() + + print >> html, '
' + + print >> html, '
'
+        with file(dynafile) as f:
+            for lineno, line in enumerate(f, start=1):
+                print >> html, '%s' % (lineno, line.rstrip())
+        print >> html, '
' + + print >> html, '
' + + print >> html, '
' + + print >> html, '
' + + + print >> html, '
' anf = toANF(code) -- 2.50.1