This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; higher order modules for guile | |
(define-syntax-parameter provide ; an "export" for `module' forms | |
(lambda (stx) | |
(syntax-violation 'provide "provide used outside a module form" stx))) | |
(define-syntax module | |
(lambda (stx) | |
(syntax-case stx (import) | |
((module (import lib libs ...) (params ...) body ...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require plot) | |
(plot (line sin) | |
#:x-min (- pi) | |
#:x-max pi | |
#:title "y = sin(x)") |