feel-wasm

command
v0.0.0-...-dd6a187 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Rendered for js/wasm

Overview

Command feel-wasm compiles temis' FEEL front-end to WebAssembly and exposes it to the browser as two synchronous validation functions. It is the Gate-2 spike for ADR-0016: it proves that the *real* engine — the same parser/compiler that later evaluates the model — can validate FEEL cells live in an in-browser editor, offline, with no server round-trip.

window.temisFeelValidate(expr, inputNamesCsv, funcNamesCsv)       // output / literal expression
window.temisFeelValidateUnary(test, inputNamesCsv, funcNamesCsv)  // decision-table input cell (unary test)

funcNamesCsv is an optional trailing argument: the names of the model's user-defined functions (its BKMs), comma-separated like the input names, so a call to one — a BKM's own recursive call included — validates as a known function rather than an unknown name. It may be omitted or empty when the model defines no functions.

Each returns { ok: bool } on success or { ok: false, line, col, message } with the engine's 1-based line/col diagnostic on failure.

It also exposes the engine's built-in catalog so the editor can offer code completion (variables come from the page, functions from here):

window.temisFeelBuiltins()  // [{ name, params: [...], variadic }, …]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL