Skip to content

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

Description

@pyrofolium

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..?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions