Skip to content

tzmfreedom/logical-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogicalParser

logical parser in JavaScript

Usage

npm install logical-parser
const parse = require('logical-parser')
parse('1 AND 2 OR 3')

// => { type: 'operator',
//      left:
//       { type: 'operator',
//         left: { type: 'value', value: '1' },
//         right: { type: 'value', value: '2' },
//         operator: 'AND' },
//      right: { type: 'value', value: '3' },
//      operator: 'OR' }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published