mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
compile-psyntax "optimizes" psyntax-pp
* module/ice-9/compile-psyntax.scm (source): "Optimize" psyntax-pp before writing it out. * module/ice-9/psyntax-pp.scm: Regenerated.
This commit is contained in:
parent
57086a19d0
commit
417ee09802
2 changed files with 14553 additions and 14679 deletions
|
@ -17,6 +17,7 @@
|
|||
;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
(use-modules (language tree-il)
|
||||
(language tree-il optimize)
|
||||
(ice-9 pretty-print))
|
||||
|
||||
(let ((source (list-ref (command-line) 1))
|
||||
|
@ -33,7 +34,10 @@
|
|||
(close-port in))
|
||||
(begin
|
||||
(pretty-print (tree-il->scheme
|
||||
(macroexpand x 'c '(compile load eval)))
|
||||
(optimize!
|
||||
(macroexpand x 'c '(compile load eval))
|
||||
(current-module)
|
||||
'()))
|
||||
out)
|
||||
(newline out)
|
||||
(loop (read in))))))
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue