Skip to content
A FEEL parser and interpreter written in JavaScript.
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Feelin

Build Status

A FEEL parser and interpreter written in JavaScript. ➡️ Try it out.

Usage

import {
  unaryTest,
  evaluate
} from 'feelin';

unaryTest('1', { '?': 1 }); // true
unaryTest('[1..end]', { '?': 1, end: 10 }); // true

evaluate("Mike's dauther.name", {
  'Mike\'s dauther.name': 'Lisa'
}); // "Lisa"

evaluate('for a in [1, 2, 3] return a * 2'); // [ 2, 4, 6 ]

evaluate('every rate in rates() satisfies rate < 10', {
  rates() {
    return [ 10, 20 ];
  }
}); // false

Features

  • Recognizes full FEEL grammar
  • Supports names with spaces
  • Recovers on errors
  • Provides built-in functions
  • Passes all FEEL tests in the DMN TCK

Related

Other open source FEEL interpreters:

Standards related resources:

License

MIT

You can’t perform that action at this time.