@benrogmans/lemma-engine 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lemma_bg.wasm +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Lemma is a declarative programming language for expressing business rules. This WebAssembly build for JavaScript and TypeScript provides an embeddable runtime, so that Lemma code can be evaluated anywhere.
|
|
4
4
|
|
|
5
|
-
**New to Lemma?** Check out the [language introduction](https://github.com/benrogmans/lemma#quick-start) and [examples](https://github.com/benrogmans/lemma/tree/main/
|
|
5
|
+
**New to Lemma?** Check out the [language introduction](https://github.com/benrogmans/lemma#quick-start) and [examples](https://github.com/benrogmans/lemma/tree/main/documentation/examples).
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -156,7 +156,7 @@ async function calculatePricing() {
|
|
|
156
156
|
unless promo_discount? >= bulk_discount? then promo_discount?
|
|
157
157
|
unless member_discount? >= promo_discount? then member_discount?
|
|
158
158
|
unless promo_discount? >= member_discount? then promo_discount?
|
|
159
|
-
|
|
159
|
+
|
|
160
160
|
rule final_price = base_price * quantity * (1 - best_discount?)
|
|
161
161
|
`;
|
|
162
162
|
|
|
@@ -296,6 +296,6 @@ Apache-2.0
|
|
|
296
296
|
## Links
|
|
297
297
|
|
|
298
298
|
- [GitHub Repository](https://github.com/benrogmans/lemma)
|
|
299
|
-
- [Lemma Language Guide](https://github.com/benrogmans/lemma/tree/main/
|
|
300
|
-
- [Examples](https://github.com/benrogmans/lemma/tree/main/
|
|
299
|
+
- [Lemma Language Guide](https://github.com/benrogmans/lemma/tree/main/documentation)
|
|
300
|
+
- [Examples](https://github.com/benrogmans/lemma/tree/main/documentation/examples)
|
|
301
301
|
- [Report Issues](https://github.com/benrogmans/lemma/issues)
|
package/lemma_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@benrogmans/lemma-engine",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.5",
|
|
4
|
+
"description": "A language that means business.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lemma.js",
|
|
7
7
|
"types": "lemma.d.ts",
|