v1.0.2-denoalpha.2
Parser combinators for TypeScript
Repository
Current version released
3 years ago
parzec_deno
parzec_deno is a Deno port of the Parzec NPM package. This module was created because currently the module at deno.land/x/parzec does not seem to support Deno out of the box.
Parzec is a parser combinator library adapted from Haskell’s famous Parsec library. A parser combinator library consist of higher order functions which make it easy to build recursive descent parsers.
Usage
import * as pz from "https://deno.land/x/parzec_deno/mod.ts";
Changes
In order to make the NPM based Parzec compatible with Deno, some changes have to be made. Parzec fortunately has no run-time dependencies, so only local imports need to be updated. These are parzec_deno’s contributions to the original Parzec repository:
- Update docs and metadata.
- Translated the NPM project structure to Deno.
- Fixed errors discovered by
deno fmt
anddeno lint
.- Formatted all files with
deno fmt
. - Added
// deno-lint-ignore no-explicit-any
where necessary. - Replaced
let
withconst
where possible. - Removed unnecessary
async
keywords in tests.
- Formatted all files with
- Added new build and CI tools.