[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C interpreter in Lisp/scheme/python
From: |
Mark Tarver |
Subject: |
Re: C interpreter in Lisp/scheme/python |
Date: |
Wed, 08 Dec 2010 15:17:55 -0000 |
User-agent: |
G2/1.0 |
On 14 June, 00:07, bolega <gnuist...@gmail.com> 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
Probably you want to look at this thread
http://groups.google.co.uk/group/comp.lang.lisp/browse_frm/thread/7b1ab36f5d5cce0a/54afe11153025e27?hl=en&lnk=gst&q=minim#54afe11153025e27
where I specified a toy language Minim (much simpler than C) and the
goal was to construct an interpreter for it. Similar problem.
Many solutions were given in different languages. The thread is very
long.
One thing you might look at is whether some sort of lexer/parser is
supported in any of your targets. Qi supports a compiler-compiler Qi-
YACC that allows you to write in BNF which makes this kind of project
much easier.
See
http://www.lambdassociates.org/Book/page404.htm
for an overview
Mark
- Re: C interpreter in Lisp/scheme/python, (continued)
Re: C interpreter in Lisp/scheme/python, Albert van der Horst, 2010/12/09
Re: C interpreter in Lisp/scheme/python, fortunatus, 2010/12/09
Re: C interpreter in Lisp/scheme/python, Define Macro, 2010/12/09
- Message not available
- Re: C interpreter in Lisp/scheme/python, bolega, 2010/12/08
- Message not available
- Re: C interpreter in Lisp/scheme/python, bolega, 2010/12/08
- Re: C interpreter in Lisp/scheme/python, francogrex, 2010/12/09
- Re: C interpreter in Lisp/scheme/python, George Neuner, 2010/12/09
- Re: C interpreter in Lisp/scheme/python, francogrex, 2010/12/09
Re: C interpreter in Lisp/scheme/python, Seebs, 2010/12/09
Re: C interpreter in Lisp/scheme/python,
Mark Tarver <=
Re: C interpreter in Lisp/scheme/python, Gene, 2010/12/09
Re: C interpreter in Lisp/scheme/python, Michele Simionato, 2010/12/09
Re: C interpreter in Lisp/scheme/python, Vinay, 2010/12/09
Message not available
Re: C interpreter in Lisp/scheme/python, Rivka Miller, 2010/12/09