https://github.com/mistlog/dsl-match-demo
Demo for draft-dsl-match & template project for typedraft
https://github.com/mistlog/dsl-match-demo
dsl pattern-matching typedraft typescript
Last synced: about 1 year ago
JSON representation
Demo for draft-dsl-match & template project for typedraft
- Host: GitHub
- URL: https://github.com/mistlog/dsl-match-demo
- Owner: mistlog
- License: mit
- Created: 2020-07-10T14:58:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T11:14:15.000Z (over 3 years ago)
- Last Synced: 2025-02-01T15:31:16.024Z (over 1 year ago)
- Topics: dsl, pattern-matching, typedraft, typescript
- Language: TypeScript
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DSL Match Demo
Demo for [draft-dsl-match](https://github.com/mistlog/draft-dsl-match/tree/develop), used in [https://mistlog.github.io/typedraft-docs/docs/#dsl](https://mistlog.github.io/typedraft-docs/docs/#dsl).
This project can also be used as template project for typedraft.
# Build
```shell
> npm run build
```
Then you get file `vector.ts` in `src` and see `vector1` as output in console.
For more examples, see [ts-pattern.test.tsx](https://github.com/mistlog/draft-dsl-match/blob/develop/src/ts-pattern.test.tsx).