Added macros

This commit is contained in:
Justin Ethier 2016-09-30 00:14:22 -04:00
parent 74fdebff1c
commit f0fb0ab198
2 changed files with 29 additions and 30 deletions

View file

@ -58,7 +58,6 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
- [`get-output-bytevector`](#get-output-bytevector) - [`get-output-bytevector`](#get-output-bytevector)
- [`get-output-string`](#get-output-string) - [`get-output-string`](#get-output-string)
- [`guard`](#guard) - [`guard`](#guard)
- [`guard-aux`](#guard-aux)
- [`inexact`](#inexact) - [`inexact`](#inexact)
- [`inexact?`](#inexact-1) - [`inexact?`](#inexact-1)
- [`input-port-open?`](#input-port-open) - [`input-port-open?`](#input-port-open)
@ -102,6 +101,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
- [`or`](#or) - [`or`](#or)
- [`output-port-open?`](#output-port-open) - [`output-port-open?`](#output-port-open)
- [`output-port?`](#output-port) - [`output-port?`](#output-port)
- [`parameterize`](#parameterize)
- [`positive?`](#positive) - [`positive?`](#positive)
- [`quasiquote`](#quasiquote) - [`quasiquote`](#quasiquote)
- [`quotient`](#quotient) - [`quotient`](#quotient)
@ -133,7 +133,6 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
- [`string>?`](#string-5) - [`string>?`](#string-5)
- [`symbol=?`](#symbol) - [`symbol=?`](#symbol)
- [`syntax-error`](#syntax-error) - [`syntax-error`](#syntax-error)
- [`syntax-rules`](#syntax-rules)
- [`truncate`](#truncate) - [`truncate`](#truncate)
- [`truncate-quotient`](#truncate-quotient) - [`truncate-quotient`](#truncate-quotient)
- [`truncate-remainder`](#truncate-remainder) - [`truncate-remainder`](#truncate-remainder)
@ -161,6 +160,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#abs #abs
(abs num) (abs num)
#and #and
(and {test1} ...)
#any #any
(any pred lst) (any pred lst)
#append #append
@ -173,6 +173,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#assv #assv
(assv obj alist) (assv obj alist)
#begin #begin
(begin {expression or definition} ...)
#boolean=? #boolean=?
(boolean=? b1 b2 ...) (boolean=? b1 b2 ...)
#bytevector-copy #bytevector-copy
@ -192,6 +193,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#call/cc #call/cc
(call/cc proc) (call/cc proc)
#case #case
(case {key} {clause1} {clause2} ...)
#ceiling #ceiling
(ceiling z) (ceiling z)
#char<=? #char<=?
@ -207,7 +209,9 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#complex? #complex?
(complex? obj) (complex? obj)
#cond #cond
(cond {clause1} {clause2} ...)
#cond-expand #cond-expand
(cond-expand {ce-clause2} {ce-clause2} ...)
#current-error-port #current-error-port
(current-error-port) (current-error-port)
#current-input-port #current-input-port
@ -218,6 +222,10 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#denominator #denominator
(denominator n) (denominator n)
#do #do
(do (({variable1} {init1} {step1})
...)
({test} {expression} ...)
{command} ...)
#dynamic-wind #dynamic-wind
(dynamic-wind before thunk after) (dynamic-wind before thunk after)
#eof-object #eof-object
@ -262,7 +270,9 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#get-output-string #get-output-string
(get-output-string port) (get-output-string port)
#guard #guard
#guard-aux (guard ({variable}
{cond clause1} {cond clause2} ...)
{body})
#inexact #inexact
(inexact z) (inexact z)
#inexact? #inexact?
@ -274,11 +284,17 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#lcm #lcm
(lcm n1 ...) (lcm n1 ...)
#let #let
(let {bindings} {body})
#let* #let*
(let* {bindings} {body})
#let*-values #let*-values
(let*-values {mv binding spec} {body})
#let-values #let-values
(let-values {mv binding spec} {body})
#letrec #letrec
(letrec {bindings} {body})
#letrec* #letrec*
(letrec* {bindings} {body})
#list #list
(list obj ...) (list obj ...)
#list-copy #list-copy
@ -343,13 +359,18 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#open-output-string #open-output-string
(open-output-string) (open-output-string)
#or #or
(or {test1} ...)
#output-port-open? #output-port-open?
(output-port-open? port) (output-port-open? port)
#output-port? #output-port?
(output-port? obj) (output-port? obj)
#parameterize
(parameterize (({param1} {value1}) ...)
{body})
#positive? #positive?
(positive? n) (positive? n)
#quasiquote #quasiquote
(quasiquote {qq template})
#quotient #quotient
(quotient x y) (quotient x y)
#raise #raise
@ -365,6 +386,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
(read-string k) (read-string k)
(read-string k port) (read-string k port)
#receive #receive
(receive {formals} {expression} {body})
#record? #record?
(record? obj) (record? obj)
#remainder #remainder
@ -420,7 +442,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#symbol=? #symbol=?
(symbol=? symbol1 symbol2 symbol3 ...) (symbol=? symbol1 symbol2 symbol3 ...)
#syntax-error #syntax-error
#syntax-rules (syntax-error {message} {args} ...)
#truncate #truncate
(truncate z) (truncate z)
#truncate-quotient #truncate-quotient
@ -432,6 +454,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#type-slot-offset #type-slot-offset
(type-slot-offset name sym) (type-slot-offset name sym)
#unless #unless
(unless {test} {expression1} {expression2} ...)
#utf8->string #utf8->string
(utf8->string bytevector) (utf8->string bytevector)
(utf8->string bytevector start) (utf8->string bytevector start)
@ -467,6 +490,7 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
#vector-map #vector-map
(vector-map proc vector1 vector2 ...) (vector-map proc vector1 vector2 ...)
#when #when
(when {test} {expression1} {expression2} ...)
#with-exception-handler #with-exception-handler
(with-exception-handler handler thunk) (with-exception-handler handler thunk)
#write-char #write-char
@ -477,28 +501,3 @@ For more information see the [R<sup>7</sup>RS Scheme Specification](../../r7rs.p
(write-string string port) (write-string string port)
#zero? #zero?
(zero? n) (zero? n)
(define-syntax and
(define-syntax begin
(define-syntax case
(define-syntax cond
(define-syntax cond-expand
(define-syntax define-record-type
(define-syntax do
(define-syntax guard
(define-syntax guard-aux
(define-syntax let
(define-syntax let*
(define-syntax let*-values
(define-syntax let-values
(define-syntax letrec
(define-syntax letrec*
(define-syntax or
(define-syntax parameterize
(define-syntax quasiquote
(define-syntax receive
(define-syntax syntax-error
(define-syntax syntax-rules
(define-syntax unless
(define-syntax when

View file

@ -197,7 +197,7 @@
; textual-port? ; textual-port?
; ;
; ;; syntax-rules ; ;; syntax-rules
; parameterize parameterize
; define-values ; define-values
; ;
; unclassified TODO's: ; unclassified TODO's: