From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: fortunatus Newsgroups: gmane.emacs.help Subject: Re: C interpreter in Lisp/scheme/python Date: Mon, 14 Jun 2010 06:25:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: <208098a1-e832-4994-913b-260262aebce6__23589.5025347874$1291929184$gmane$org@i28g2000yqa.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291929184 1537 80.91.229.12 (9 Dec 2010 21:13:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 21:13:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 22:13:00 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQnm9-0007YL-FY for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 22:12:59 +0100 Original-Received: from localhost ([127.0.0.1]:40695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQnjQ-0005QX-5k for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 16:08:52 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!i28g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help, comp.lang.lisp, comp.lang.scheme, comp.lang.c, comp.lang.python Original-Lines: 22 Original-NNTP-Posting-Host: 207.5.37.130 Original-X-Trace: posting.google.com 1276521955 14108 127.0.0.1 (14 Jun 2010 13:25:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 14 Jun 2010 13:25:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i28g2000yqa.googlegroups.com; posting-host=207.5.37.130; posting-account=2oVI6AkAAACj1YiZTBpgU6yWDjyL7X5k User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178930 comp.lang.lisp:289120 comp.lang.scheme:86999 comp.lang.c:975998 comp.lang.python:634981 X-Mailman-Approved-At: Thu, 09 Dec 2010 15:58:43 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77065 Archived-At: On Jun 13, 7:07=A0pm, bolega wrote: > I am trying to compare LISP/Scheme/Python for their expressiveness. > > For this, I propose a vanilla C interpreter. I have seen a book which > writes C interpreter in C. > > The criteria would be the small size and high readability of the code. > > Are there already answers anywhere ? > > How would a gury approach such a project ? > > Bolega Holy cow has this gone off topic! To OP - start writing a C context free grammar of a subset of C (arithmetic expressions IMHO are the historical root of C and a good place to start in any case), start writing a parser of a subset of your subset grammar (in a lisp of your chioce - Scheme and CL for instance are going to be pretty much equivalent in this task), and really the rest will be obvious... I'd go that far before posting on the topic again...