Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utilties.rkt function parses incorrectly when using book. #10

Open
pyrofolium opened this issue Nov 29, 2021 · 0 comments
Open

utilties.rkt function parses incorrectly when using book. #10

pyrofolium opened this issue Nov 29, 2021 · 0 comments

Comments

@pyrofolium
Copy link

When I run this:

(require "utilities.rkt")

(define x (parse-program `(program () (+ 10 (- (+ 5 3))))))

(define y
  (Program '() (Prim '+ (list (Int 10) (Prim '- (list (Prim '+ (list (Int 5) (Int 3))))))
  

the values on the repl display different things for y and x. In fact the interp-Rint function in the book actually can't parse x. If users follow the book it doesn't exactly work..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant