0.2.2-update-npm-4f01eb739e394fbb07ae9277c40ce44c07f64592 • Published 6 years ago

@balena.io/sbvr-parser v0.2.2-update-npm-4f01eb739e394fbb07ae9277c40ce44c07f64592

Weekly downloads
-
License
BSD
Repository
github
Last release
6 years ago

sbvr-parser

An SBVR Structured Englished to SBVR Logical Formulation parser.

The SBVR documentation can be found here http://www.omg.org/spec/SBVR/

Example usage

const SBVRParser = require('./sbvr-parser.js').SBVRParser.createInstance()
const rule = 'Term: name'
const LF = SBVRParser.matchAll(rule, 'Process')

console.log(LF)

outputs:

[ 'Model',
  [ 'Vocabulary', 'Default', [ 'Attributes' ] ],
  [ 'Term', 'name', 'Default', [ 'Attributes' ] ] ]

Tests

Tests can be found under the test/ folder, to run the whole suite use npm test