unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] Fix Ecmascript's tree-il compiling
@ 2012-04-29  7:40 Nala Ginrut
  2012-04-30 16:17 ` Noah Lavine
  0 siblings, 1 reply; 6+ messages in thread
From: Nala Ginrut @ 2012-04-29  7:40 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

Our inner Ecmascript(also named Javascript for a historical reason)
has broken for a long time since tree-il has been updated.
When I try to implement a small language with Guile, I found that
current parse-tree-il doesn't need a list as its arg anymore.
And I changed the same line in
language/ecmascript/compile-tree-il.scm, then it works again!
No matter how many people interested in the inner ecmascript there be,
I like it and I wish it enhance more.
Anyway, multi-language is an interesting feature for Guile.

Here's the patch.

[-- Attachment #2: 0001-Fix-ecmascript-compile-tree-il.patch --]
[-- Type: application/octet-stream, Size: 958 bytes --]

From 00b8f88444a62d040fc361922d0909b5d39780bc Mon Sep 17 00:00:00 2001
From: NalaGinrut <NalaGinrut@gmail.com>
Date: Sun, 29 Apr 2012 15:23:42 +0800
Subject: [PATCH] * Get rid of '->' because current parse-tree-il don't need a list as arg.
 modified:   module/language/ecmascript/compile-tree-il.scm

---
 module/language/ecmascript/compile-tree-il.scm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/language/ecmascript/compile-tree-il.scm b/module/language/ecmascript/compile-tree-il.scm
index a2401f4..2532ad7 100644
--- a/module/language/ecmascript/compile-tree-il.scm
+++ b/module/language/ecmascript/compile-tree-il.scm
@@ -47,8 +47,8 @@
 (define (compile-tree-il exp env opts)
   (values
    (parse-tree-il
-    (-> (begin (@impl js-init)
-               (comp exp (empty-lexical-environment)))))
+     (begin (@impl js-init)
+               (comp exp (empty-lexical-environment))))
    env
    env))
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-17  2:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-29  7:40 [PATCH] Fix Ecmascript's tree-il compiling Nala Ginrut
2012-04-30 16:17 ` Noah Lavine
2012-05-01 17:00   ` Nala Ginrut
2012-05-02 21:54   ` Ludovic Courtès
2012-05-04  9:15     ` Nala Ginrut
2012-05-17  2:23       ` Nala Ginrut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).