나는 수업 과제를 준비 중입니다. 그냥 소스에 박사 제도 (중급 학생 언어)라고 내가있을 때, 그러나스키마에 하나의 필드가있는 구조체를 정의하십시오.
(define-struct diff-exp exprs)
(define-struct mult-exp exprs)
;; An Expr is one of
;; -- Number
;; -- (make-diff-exp (cons Expr LOExpr))
;; -- (make-mult-exp (cons Expr LOExpr))
;; Interpretation: a diff-exp represents a difference,
;; and a mult-exp represents a multiplication.
;; A List of Exprs (LOExpr) is one of
;; -- empty
;; -- (cons Expr LOExpr)
:
define-struct: expected a sequence of field names after the structure type name in `define-struct', but found something else
가 나는 것이 있습니다 문제 문은 데이터 정의를 사용하여 말한다 여기에 누락되었거나 선생님이 나에게 유효하지 않은 데이터 정의를 제공 했습니까?
하나의 요소 목록으로'exprs'를 정의해야한다고 생각합니다. –