(define-module (modules ast assembly-tree) #:use-module (srfi srfi-9) #:export (make-subroutine subroutine? subroutine-label subroutine-instructions make-instruction instruction? instruction-operator instruction-operand-1 instruction-operand-2)) (define-record-type (make-subroutine label instrs) subroutine? (label subroutine-label) (instrs subroutine-instructions)) (define-record-type (make-instruction op oper1 oper2) instruction? (op instruction-operator) (oper1 instruction-operand-1) (oper2 instruction-operand-2))