From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Kraft Newsgroups: gmane.lisp.guile.devel Subject: Re: Some more elisp aspects: Reader and documentation Date: Mon, 17 Aug 2009 14:07:10 +0200 Message-ID: <4A8947EE.4080407@domob.eu> References: <4A7453A2.2020808@domob.eu> <87tz06u0gq.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1250510854 21100 80.91.229.12 (17 Aug 2009 12:07:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 12:07:34 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Aug 17 14:07:27 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Md0zm-0007k1-DC for guile-devel@m.gmane.org; Mon, 17 Aug 2009 14:07:27 +0200 Original-Received: from localhost ([127.0.0.1]:51171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md0zl-0003kj-RI for guile-devel@m.gmane.org; Mon, 17 Aug 2009 08:07:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md0zT-0003fY-V3 for guile-devel@gnu.org; Mon, 17 Aug 2009 08:07:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md0zP-0003ex-P9 for guile-devel@gnu.org; Mon, 17 Aug 2009 08:07:07 -0400 Original-Received: from [199.232.76.173] (port=48639 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md0zP-0003eg-Ec for guile-devel@gnu.org; Mon, 17 Aug 2009 08:07:03 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:43859) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Md0zO-0004p9-TK for guile-devel@gnu.org; Mon, 17 Aug 2009 08:07:03 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Md0zM-0007Yk-HR for guile-devel@gnu.org; Mon, 17 Aug 2009 14:07:00 +0200 Original-Received: from d86-33-197-56.cust.tele2.at ([86.33.197.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Aug 2009 14:07:00 +0200 Original-Received: from d by d86-33-197-56.cust.tele2.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Aug 2009 14:07:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: d86-33-197-56.cust.tele2.at User-Agent: Thunderbird 2.0.0.0 (X11/20070425) In-Reply-To: <87tz06u0gq.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9134 Archived-At: Hi Ludo, Ludovic Courtès wrote: > Sorry for the late reply. no problem, thanks for the reply! I had a lot of other stuff to do anyways, and so didn't really get into the situation of waiting for a reply here ;) >> 2) Write a seperate elisp reader, possibly in Scheme (but could be C >> as well if that's important for performance). This helps us keep >> "both" readers clean and seperate, but all has to be done from ground >> up and the code is probably slower (when written in Scheme). > > This sounds like the best option to me. You could use SILex to build > the lexer (http://www.iro.umontreal.ca/~dube/) and `(text parse-lalr)' > for the parser. Hm, ok, I'll look into those. On the other hand I guess that Lisp has such a simple syntax that hand-writing some recursive-descent parser may be an equally good option? Well, I'll simply give it a try! But it seems that the LALR parser generator is part of guile-lib, and will introduce that as a new dependency for Guile; do you think that's ok? (Haven't checked how SILex works and if it may introduce dependencies.) Yours, Daniel