Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexknauth/paren-shape
Deprecated. Use lexi-lambda/syntax-classes instead.
https://github.com/alexknauth/paren-shape
Last synced: about 1 month 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T14:55:01.000Z (almost 3 years ago)
- Last Synced: 2024-10-16T02:55:11.519Z (3 months ago)
- Language: Racket
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- 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