www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 61181270f362856eb91625f99630f93105fe36f1
parent 0383c6bc49425ac457aefd38ba9de26930163217
Author: JackFirth <jackhfirth@gmail.com>
Date:   Tue,  9 Dec 2014 21:03:11 -0800

Renaming

Updated names

Diffstat:
M.gitignore | 8++++++--
Rdefine-with-expanders.rkt -> generic-syntax-expanders.rkt | 0
Dgeneric-syntax-expanders.scrbl | 6------
Minfo.rkt | 4++--
Mmain.rkt | 6+++---
Ascribblings.scrbl | 19+++++++++++++++++++
6 files changed, 30 insertions(+), 13 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,2 +1,6 @@ compiled/* -*.bak -\ No newline at end of file +*.bak +*.html +*.css +*.js +*.2 +\ No newline at end of file diff --git a/define-with-expanders.rkt b/generic-syntax-expanders.rkt diff --git a/generic-syntax-expanders.scrbl b/generic-syntax-expanders.scrbl @@ -1,6 +0,0 @@ -#lang scribble/manual - -@(require "define-with-expanders.rkt") - -@title{Generic Syntax Expanders} -@defmodule[generic-syntax-expanders] diff --git a/info.rkt b/info.rkt @@ -2,4 +2,4 @@ (define name "generic-syntax-expanders") (define deps '("base" "predicates")) -(define scribblings '(("generic-syntax-expanders.scrbl"))) -\ No newline at end of file +(define scribblings '(("scribblings.scrbl"))) +\ No newline at end of file diff --git a/main.rkt b/main.rkt @@ -1,5 +1,5 @@ #lang racket -(require "define-with-expanders.rkt") +(require "generic-syntax-expanders.rkt") -(provide (all-from-out "define-with-expanders.rkt")) -\ No newline at end of file +(provide (all-from-out "generic-syntax-expanders.rkt")) +\ No newline at end of file diff --git a/scribblings.scrbl b/scribblings.scrbl @@ -0,0 +1,18 @@ +#lang scribble/manual + +@(require "generic-syntax-expanders.rkt") + +@title{Generic Syntax Expanders} +@defmodule[generic-syntax-expanders] + +@defform[(define-syntax-with-expanders id transformer-expr)]{ +Defines @racket[id] as syntax, but also defines several additional bindings that allow +for additional syntax to be defined within the body of wherever @racket[id] is used, +in the same way @racket[define-match-expander] allows for additional syntax to be +defined in the body of @racket[match] patterns. The bindings defined are as follows: +@defsubform[(define-id-expander expander-id expander-transformer-expr)]{ +A syntactic form that binds @racket[expander-id] as a @racket[id-expander?], which +will expand within the body of an @racket[id] syntactic form using +@racket[expander-transformer-expr] before @racket[id] expands. +} +} +\ No newline at end of file