Documentation Index
Fetch the complete documentation index at: https://mintlify.com/saiashirwad/parserator/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Get started with Parserator in seconds. Install the package and you’re ready to build parsers.Install the package
Choose your preferred package manager:TypeScript requirements
Parserator requires TypeScript 5.0 or higher for full type inference.Parserator has
typescript@^5.0.0 as a peer dependency. Make sure your project uses TypeScript 5.0 or later to get the best type inference experience.Verify installation
Create a simple test file to verify everything works:test.ts
"5" printed to the console, you’re all set!
TypeScript configuration
For the best experience, ensure yourtsconfig.json includes these settings:
tsconfig.json
The
strict flag is recommended to get the full benefits of TypeScript’s type checking with Parserator’s inferred types.Import styles
Parserator supports both named and wildcard imports:Module formats
Parserator is distributed as both ESM and CommonJS:Next steps
Quickstart
Build your first parser with a step-by-step tutorial
Core concepts
Learn the fundamental concepts behind parser combinators