Skip to main content
2 votes
1 answer
326 views

I'm watching a lecture SICP 7A and struggling to understand "Define Lisp as Y combinator (time 1:16:15 )" I think I understood that expt ( calculating exponential of a number like x^n ) can ...
codeDog's user avatar
  • 53
0 votes
2 answers
60 views

I am coding a meta-circular interpreter and am trying to implement closures. I have a function make-lambda which makes the closure: (define (make-lambda parameters body env) (list 'lambda parameters ...
Jacob Jake Mair's user avatar
2 votes
1 answer
195 views

There is source to a SICP metacircular evaluator can be found at https://mitpress.mit.edu/sites/default/files/sicp/code/ch4-mceval.scm Does anyone know of mceval that includes an implementation of ...
user825628's user avatar
0 votes
3 answers
307 views

I want to implement a meta-circular evaluator in JS with support to functional programming. How can I parse this? [1..10] I want to receive 1 and 10
NrBanMex 's user avatar
0 votes
3 answers
563 views

I am working on the metacircular evaluator, and I'm trying to add primitive procedures. I am almost done, except I'm not sure how to add the error. Here is what I have so far: (define primitive-...
Isaac's user avatar
  • 351
3 votes
1 answer
1k views

I'm trying to understand the concept of meta-circular evaluator. According to Wikipedia In computing, a meta-circular evaluator or meta-circular interpreter is an interpreter which defines each ...
Tuomas Toivonen's user avatar
3 votes
1 answer
1k views

I am implementing a Lisp interpreter in pure C and am having trouble transitioning from C into Lisp. Following Peter Norvig's steps in his blog post, I have a REPL which so far parses Lisp ...
Jon Deaton's user avatar
  • 4,529
1 vote
2 answers
122 views

I have this task where i'm working with a metacircular evaluator, and i define a new cond like this: (define cond 3) As well as else: (define (else x) (/ x 2) My question is why does this (below) ...
Eddie Kusturica's user avatar
4 votes
1 answer
8k views

I am trying to convert SICP's meta-circular evaluator to Clojure. In setup-environment a call to extend-environment does not compile because I get the error "Attempting to call unbound fn". Here's ...
user2609980's user avatar
  • 10.5k
21 votes
4 answers
3k views

Alan Kay said that reading the code closely and finding the 1 and only bug in the code on page 13 of the Lisp 1.5 manual, helped him understand Computer Science by a factor of 100 better. The code in ...
GlassGhost's user avatar
  • 17.9k
2 votes
2 answers
304 views

I'm trying to add a pattern matching function to an existing scheme meta circular evaluator (this is homework) and I'm a bit lost on the wording of the instructions. I was hoping someone more skilled ...
user3029486's user avatar
1 vote
1 answer
439 views

Why doesn't this while loop work for the metacircular interpreter. How do i run this in my interactions window ? ((while? exp) (eval (while->combination exp) env)) (define (while-condition expr)...
user3450718's user avatar
6 votes
1 answer
264 views

General Question I have a pair of datatypes that are two different ways of representing the same thing, one records the variable name in String, while the other one records the variable name in Int. ...
xiaolingxiao's user avatar
  • 4,937
3 votes
2 answers
7k views

When I am trying to run an evaluator in Dr. Racket, it shows the error: 'Module Language: there can only be one expression in the definitions window'. Obviously there are multiple definitions in ...
Hari Chaudhary's user avatar
5 votes
1 answer
1k views

Can samebody explain it to me what is meta-circular interpreter? Definition on wikipedia is: A meta-circular evaluator is a special case of a self-interpreter in which the existing facilities ...
peto1234's user avatar
  • 379

15 30 50 per page