├── .gitignore ├── .npmignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── bun.lockb ├── docs ├── .vitepress │ └── config.ts ├── api │ ├── combinators.md │ ├── error-formatter.md │ ├── hints.md │ ├── index.md │ ├── parser.md │ └── state.md ├── examples │ ├── csv-parser.md │ ├── expression-parser.md │ └── json-parser.md ├── guide │ ├── advanced-patterns.md │ ├── basic-concepts.md │ ├── error-handling.md │ ├── getting-started.md │ └── parser-combinators.md ├── index.md ├── introduction │ └── what-is-parserator.md └── lol.md ├── examples ├── email.ts ├── hints-example.ts ├── ini-parser.ts ├── js-parser.ts ├── lol.ts ├── phone-number.ts ├── points.ts └── scheme-parser.ts ├── index.ts ├── package.json ├── scripts └── generate-api-docs.ts ├── src ├── combinators.ts ├── debug.ts ├── either.ts ├── error-formatter.ts ├── errors.ts ├── hints.ts ├── index.ts ├── parser.ts ├── state.ts ├── types.ts └── utils.ts ├── tests └── combinators.test.ts ├── tsconfig.json ├── tsconfig.types.json └── tsup.config.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/.npmignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { "biome.enabled": true } 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/README.md -------------------------------------------------------------------------------- /bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/bun.lockb -------------------------------------------------------------------------------- /docs/.vitepress/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/.vitepress/config.ts -------------------------------------------------------------------------------- /docs/api/combinators.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/api/combinators.md -------------------------------------------------------------------------------- /docs/api/error-formatter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/api/error-formatter.md -------------------------------------------------------------------------------- /docs/api/hints.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/api/hints.md -------------------------------------------------------------------------------- /docs/api/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/api/index.md -------------------------------------------------------------------------------- /docs/api/parser.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/api/parser.md -------------------------------------------------------------------------------- /docs/api/state.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/api/state.md -------------------------------------------------------------------------------- /docs/examples/csv-parser.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/examples/csv-parser.md -------------------------------------------------------------------------------- /docs/examples/expression-parser.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/examples/expression-parser.md -------------------------------------------------------------------------------- /docs/examples/json-parser.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/examples/json-parser.md -------------------------------------------------------------------------------- /docs/guide/advanced-patterns.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/guide/advanced-patterns.md -------------------------------------------------------------------------------- /docs/guide/basic-concepts.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/guide/basic-concepts.md -------------------------------------------------------------------------------- /docs/guide/error-handling.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/guide/error-handling.md -------------------------------------------------------------------------------- /docs/guide/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/guide/getting-started.md -------------------------------------------------------------------------------- /docs/guide/parser-combinators.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/guide/parser-combinators.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/introduction/what-is-parserator.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/introduction/what-is-parserator.md -------------------------------------------------------------------------------- /docs/lol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/docs/lol.md -------------------------------------------------------------------------------- /examples/email.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/email.ts -------------------------------------------------------------------------------- /examples/hints-example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/hints-example.ts -------------------------------------------------------------------------------- /examples/ini-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/ini-parser.ts -------------------------------------------------------------------------------- /examples/js-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/js-parser.ts -------------------------------------------------------------------------------- /examples/lol.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/lol.ts -------------------------------------------------------------------------------- /examples/phone-number.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/phone-number.ts -------------------------------------------------------------------------------- /examples/points.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/points.ts -------------------------------------------------------------------------------- /examples/scheme-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/examples/scheme-parser.ts -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/index.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/package.json -------------------------------------------------------------------------------- /scripts/generate-api-docs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/scripts/generate-api-docs.ts -------------------------------------------------------------------------------- /src/combinators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/combinators.ts -------------------------------------------------------------------------------- /src/debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/debug.ts -------------------------------------------------------------------------------- /src/either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/either.ts -------------------------------------------------------------------------------- /src/error-formatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/error-formatter.ts -------------------------------------------------------------------------------- /src/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/errors.ts -------------------------------------------------------------------------------- /src/hints.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/hints.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/parser.ts -------------------------------------------------------------------------------- /src/state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/state.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tests/combinators.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/tests/combinators.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/tsconfig.types.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saiashirwad/parserator/HEAD/tsup.config.ts --------------------------------------------------------------------------------