# codemirror-lang-bool

> Boolean query language support for CodeMirror

Latest version **0.1.0** (published 2022-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install codemirror-lang-bool
pnpm add codemirror-lang-bool
yarn add codemirror-lang-bool
bun add codemirror-lang-bool
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-12-08 |
| First published | 2022-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | holub008 |

## Links

- npm: https://www.npmjs.com/package/codemirror-lang-bool
- npm.io page: https://npm.io/package/codemirror-lang-bool

## Dependencies (4)

- [@lezer/lr](https://npm.io/package/@lezer/lr.md) ^1.0.0
- [@lezer/highlight](https://npm.io/package/@lezer/highlight.md) ^1.0.0
- [@codemirror/language](https://npm.io/package/@codemirror/language.md) ^6.0.0
- [@codemirror/autocomplete](https://npm.io/package/@codemirror/autocomplete.md) ^6.0.0

## Recent versions

- 0.1.0 (latest) — 2022-12-08

## README

# CodeMirror 6 Boolean Language support

This package provides extension support for simple boolean queries typically seen in literature databases.

It is forked from [lang-example](https://github.com/codemirror/lang-example) and [https://github.com/ShreyRavi/lang-simpleboolean](https://github.com/codemirror/lang-example)
and shares their license.

## Syntax
Syntax is a simple generalization of boolean syntax seen on large literature databases like PubMed. Binary operators provided are:

- `AND`
- `OR`
- `NOT`

Which are given in order of precedence and may either be all lower or upper case.

To specify precedence, `(` and `)` may wrap any expression.

All other tokens are treated as identifiers/variables.

### Examples

```
ketchup AND mustard
```

```
(rice and "soy sauce") 
OR 
(potatos AND cheese)
```

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