This package has been deprecated

Author message:

@resin/sbvr-parser is deprecated, please use @balena/sbvr-parser instead

@resin/sbvr-parser

0.2.11 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @resin/sbvr-parser

Weekly Downloads

1

Version

0.2.11

License

BSD

Unpacked Size

286 kB

Total Files

27

Last publish

Collaborators

  • balena.io