remove double-parens unicode delimiter -- it was always a bad idea
This commit is contained in:
parent
e58b43db0d
commit
17fe28f3dd
|
@ -2,7 +2,7 @@
|
|||
|
||||
(provide
|
||||
#%ornate-parens
|
||||
#%double-parens
|
||||
#%s-shaped-bag-delim
|
||||
#%inequality-brackets
|
||||
#%double-inequality-brackets
|
||||
#%moon-faces
|
||||
|
@ -16,7 +16,7 @@
|
|||
(syntax-case stx ()
|
||||
[(ptm e ...) #'(e ...)]))
|
||||
(define-syntax #%ornate-parens (make-rename-transformer #'pass-through-list))
|
||||
(define-syntax #%double-parens (make-rename-transformer #'pass-through-list))
|
||||
(define-syntax #%s-shaped-bag-delim (make-rename-transformer #'pass-through-list))
|
||||
(define-syntax #%inequality-brackets (make-rename-transformer #'pass-through-list))
|
||||
(define-syntax #%double-inequality-brackets (make-rename-transformer #'pass-through-list))
|
||||
(define-syntax #%moon-faces (make-rename-transformer #'pass-through-list))
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#\﴾ #\﴿ '#%ornate-parens
|
||||
#:base-readtable
|
||||
(make-list-delim-readtable/wrap
|
||||
#\⸨ #\⸩ '#%double-parens
|
||||
#\⟅ #\⟆ '#%s-shaped-bag-delim
|
||||
#:base-readtable
|
||||
(make-string-delim-readtable/wrap
|
||||
#\「 #\」 '#%cjk-corner-quotes
|
||||
|
|
|
@ -16,7 +16,7 @@ Don't consider this library to be stable right now. Particularly the udelim met
|
|||
@section{Guide}
|
||||
This is a library I wrote primarily to help make nestable embedding of different syntax in #lang rash, but is generally useful for adding extra types of parenthesis or string delimiters to a language. After watching Jay McCarthy's talk at Sixth Racketcon, I also decided to steal his idea of making different types of parenthesis wrap their contents with an additional #%symbol.
|
||||
|
||||
You can use the udelim meta-language (eg #lang udelim racket/base) to add a few extra parenthesis types and string types to any language. Specifically, «» are nestable non-escaping string delimiters (IE «foo «bar»» reads as "foo «bar»"), 「」 are like «» but wrapped so 「foo bar」 produces (#%cjk-corner-quotes "foo bar"), ﴾foo bar﴿ reads as (#%ornate-parens foo bar), ⦓foo bar⦔ reads as (#%inequality-brackets foo bar), ⦕foo bar⦖ reads as (#%double-inequality-brackets foo bar), 🌜foo bar🌛 reads as (#%moon-faces foo bar), and ⸨foo bar⸩ reads as (#%double-parens foo bar). To get default meanings for the #% identifiers (currently just pass-through macros), use (require udelim/defaults).
|
||||
You can use the udelim meta-language (eg #lang udelim racket/base) to add a few extra parenthesis types and string types to any language. Specifically, «» are nestable non-escaping string delimiters (IE «foo «bar»» reads as "foo «bar»"), 「」 are like «» but wrapped so 「foo bar」 produces (#%cjk-corner-quotes "foo bar"), ﴾foo bar﴿ reads as (#%ornate-parens foo bar), ⦓foo bar⦔ reads as (#%inequality-brackets foo bar), ⦕foo bar⦖ reads as (#%double-inequality-brackets foo bar), 🌜foo bar🌛 reads as (#%moon-faces foo bar), and ⟅foo bar⟆ reads as (#%s-shaped-bag-delim foo bar). To get default meanings for the #% identifiers (currently just pass-through macros), use (require udelim/defaults).
|
||||
|
||||
@section{Reference}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user