From: Nala Ginrut <nalaginrut@gmail.com>
To: guile-devel <guile-devel@gnu.org>
Subject: [PATCH] Fix Ecmascript's tree-il compiling
Date: Sun, 29 Apr 2012 15:40:20 +0800 [thread overview]
Message-ID: <CAPjoZock8HBbejZ=TB5iJkat8xDJ-P4cfM_R6_5mW4wnGK4npw@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2012-04-29 7:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-29 7:40 Nala Ginrut [this message]
2012-04-30 16:17 ` [PATCH] Fix Ecmascript's tree-il compiling 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPjoZock8HBbejZ=TB5iJkat8xDJ-P4cfM_R6_5mW4wnGK4npw@mail.gmail.com' \
--to=nalaginrut@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).