diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-01-06 21:08:12 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2022-01-06 21:08:12 +0530 |
| commit | f129d1d6e8f03e586952d8c792c8e085ae7bca85 (patch) | |
| tree | d9957ad3c42f886748cb6007451cba8b5f566d49 /src/index.d.ts | |
| parent | 6ee30757cf9946074e2b5bb29a59b299fc48d0d8 (diff) | |
| download | elxr-f129d1d6e8f03e586952d8c792c8e085ae7bca85.tar.gz elxr-f129d1d6e8f03e586952d8c792c8e085ae7bca85.zip | |
feat: basic parser
Diffstat (limited to '')
| -rw-r--r-- | src/index.d.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 0000000..fdaab41 --- /dev/null +++ b/src/index.d.ts @@ -0,0 +1,7 @@ +import { Either } from 'fp-ts/Either'; +declare type ParserResult<T> = [T, string]; +declare type ParserError = [string, string]; +declare type Parser<T> = (input: string) => Either<ParserError, ParserResult<T>>; +export declare const p_digit: Parser<string>; +export declare const many0: <T>(p: Parser<T>) => Parser<T[]>; +export {}; |
