codemirror-lang-bool
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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 and https://github.com/ShreyRavi/lang-simpleboolean 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)

/codemirror-lang-bool/

    Package Sidebar

    Install

    npm i codemirror-lang-bool

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    10

    Last publish

    Collaborators

    • holub008