UNPKG

parsergen-starter

Version:

A complete parser generator starter with PEG.js, optional Moo lexer, and VS Code integration

25 lines (18 loc) โ€ข 912 B
# parsergen-starter A modern starter toolkit for building custom parsers using PEG-style grammars, written in TypeScript. Ideal for building compilers, interpreters, or DSLs with highlighting, AST inspection, and REPL support. ![npm](https://img.shields.io/npm/v/parsergen-starter?color=blue) ![MIT License](https://img.shields.io/npm/l/parsergen-starter) ![Build](https://img.shields.io/github/actions/workflow/status/nyigoro/parsergen-starter/ci.yml?branch=main) ## โœจ Features - โšก PEG-style grammar parser with AST output - ๐ŸŽจ Syntax highlighting (terminal + browser) - ๐Ÿงช Unit test support (Jest) - ๐Ÿง‘โ€๐Ÿ’ป REPL mode for quick testing - ๐Ÿ”ง CLI for parsing and inspecting grammar files - ๐Ÿ“ฆ Exportable library (CJS + ESM) - ๐Ÿ“ Example grammar + test files included ## ๐Ÿ“ฆ Installation ```bash npm install -g parsergen-starter # or pnpm add -D parsergen-starter