# gekr

> Generic parser library

Latest version **1.0.0** (published 2023-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install gekr
pnpm add gekr
yarn add gekr
bun add gekr
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-06-14 |
| First published | 2023-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 89.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bt7s7k7 |
| Maintainers | bt7s7k7 |

## Links

- npm: https://www.npmjs.com/package/gekr
- Repository: https://github.com/bt7s7k7/Gekr
- Homepage: https://github.com/bt7s7k7/Gekr#readme
- Issues: https://github.com/bt7s7k7/Gekr/issues
- npm.io page: https://npm.io/package/gekr

## Dependencies (1)

- [kompa](https://npm.io/package/kompa.md) ^1.2.0

## Recent versions

- 1.0.0 (latest) — 2023-06-14

## README

# Gekr

Gekr is a generic library for defining parsers, specifically programming or domain specific languages. The included operations are geared towards C-style languages, but by defining custom operations it could be used for other languages.

```ts
const grammar = new Gekr.Grammar({
    operations: Gekr.getArithmeticOperators()
})
const doc = new Gekr.Document(path, "1 + 2 / 3")
const result = Gekr.parse(doc, grammar)
```

This library is being used here:
  - [Turing Machine Simulator](https://substitution.web.app/turing_machine)

---
_Source: https://npm.io/package/gekr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
