https://github.com/alexknauth/paren-shape
Deprecated. Use lexi-lambda/syntax-classes instead.
https://github.com/alexknauth/paren-shape
Last synced: 3 months ago
JSON representation
Deprecated. Use lexi-lambda/syntax-classes instead.
- Host: GitHub
- URL: https://github.com/alexknauth/paren-shape
- Owner: AlexKnauth
- License: mit
- Created: 2016-10-12T21:59:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T14:55:01.000Z (over 3 years ago)
- Last Synced: 2025-03-13T00:34:04.271Z (4 months ago)
- Language: Racket
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
paren-shape
===
This library is deprecated; use the
[paren-shape pattern expanders][stxclass-paren-shape] from
syntax-classes-lib instead.Racket pattern expanders for dealing with paren-shapes in syntax-parse macros
```racket
> (require syntax/parse paren-shape/pattern-expander)
> (syntax-parse #'(1 2 3)
[(~parens a b c) #'a])
#
> (syntax-parse #'(1 2 3)
[(~brackets a b c) #'a])
;expected list or pair surrounded by square brackets in: (1 2 3)
> (syntax-parse #'[1 2 3]
[(~parens a b c) #'a])
;expected list or pair surrounded by parentheses in: [1 2 3]
```[stxclass-paren-shape]: http://docs.racket-lang.org/syntax-classes/index.html#%28mod-path._syntax%2Fparse%2Fclass%2Fparen-shape%29