From: Nala Ginrut <nalaginrut@gmail.com>
To: guile-devel@gnu.org
Subject: What's the plan about language-joiner?
Date: Sat, 08 Dec 2012 23:47:27 +0800 [thread overview]
Message-ID: <1354981647.22533.45.camel@Renee-desktop.suse> (raw)
Test code here:
------------------------cut--------------------------
# echo "(+ 1 1)" > aa.scm
# guild compile aa.scm --from=scheme --to=glil -o aa.glil
# guild compile aa.glil --from=glil --to=assembly -o aa.asm
------------------------end--------------------------
Error throws: "don't know how to join expressions"
And I checked the code, the problem is in "read-and-compile" in
module/system/base/compile.scm.
It tries to get "language-joiner", but only 'tree-il' has "joiner".
That means, if I try to compile any intermediate-language lower than
'tree-il', it'll throw the error message.
IMO, we ought to let guild compile any intermediate-language to any
lower level. And I can do such job follow these steps:
1. read out "aa.glil"
2. parser-glil the glil code
3. (compile glil-code #:from 'glil #:to 'assembly)
But I can't do it with 'guild compile' since it calls
"read-and-compile", which needs the weird "language-joiner".
There's no any docs for 'language-joiner' in the manual.
Here're the questions:
1. So what's the plan about 'language-joiner'?
2. What's the utility?
3. Why only 'tree-il' has it?
4. What about implementing 'joiner' for other lower ILs?
Thanks!
next reply other threads:[~2012-12-08 15:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-08 15:47 Nala Ginrut [this message]
2013-01-22 8:22 ` What's the plan about language-joiner? Andy Wingo
2013-01-22 8:31 ` Nala Ginrut
2013-01-22 8:35 ` 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=1354981647.22533.45.camel@Renee-desktop.suse \
--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).