diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-01-06 21:59:34 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2022-01-06 22:00:38 +0530 |
| commit | 3d88de49d99d86c70204d6870296b20177c2af21 (patch) | |
| tree | f8bbf0580035f0792d5568082ec11db02af5668b /src/index.ts | |
| parent | 0cc4e48c848aef5751573628e4af6e194b272d1d (diff) | |
| download | elxr-3d88de49d99d86c70204d6870296b20177c2af21.tar.gz elxr-3d88de49d99d86c70204d6870296b20177c2af21.zip | |
chore: adds prettier
Diffstat (limited to '')
| -rw-r--r-- | src/index.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/index.ts b/src/index.ts index 3dc572b..d236473 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,13 @@ import { constant, flow, identity, pipe } from 'fp-ts/function' -import {mapTo, symbol} from './parser' +import { mapTo, symbol } from './parser' export const start = mapTo(symbol('^'), constant({ tag: 'Start' } as Expr)) export const end = mapTo(symbol('$'), constant({ tag: 'End' } as Expr)) export const anyItem = mapTo(symbol(','), constant({ tag: 'AnyItem' } as Expr)) -export const nextItem = mapTo(symbol(','), constant({ tag: 'NextItem' } as Expr)) +export const nextItem = mapTo( + symbol(','), + constant({ tag: 'NextItem' } as Expr) +) // export const optional = mapTo(symbol('?'), constant({ tag: 'Optional' } as Expr)) // export const zeroOrMore = mapTo(symbol('*'), constant({ tag: 'ZeroOrMore' } as Expr)) // export const oneOrMore = mapTo(symbol('+'), constant({ tag: 'OneOrMore' } as Expr)) @@ -45,4 +48,3 @@ type Expr = /x/ => match regular expression (string values in list) */ - |
