6 Commits

Author SHA1 Message Date
46f9947b64 feat: add expression precompilation API and custom function registry
- F14: compile(source) separated from evaluation so an expression can be
  parsed once and evaluated many times
- F15: register user-defined C++ functions callable from expressions,
  replacing the hardcoded method dispatch with a named registry
2026-08-20 14:00:27 +03:00
cda2e9daa7 fix: harden arithmetic, string ops, and lexer error handling
- S4: add isfinite checks after all arithmetic ops (Add, Sub, Mul, Div,
  Pow, Neg) so NaN/Infinity can never enter JSON output
- S5: fix is_integral_number INT64_MAX boundary check to eliminate
  undefined behaviour from double rounding
- S6: cap string concatenation result at MAX_STRING_SIZE (1MB)
- S7: add optional max_source_length parameter to test/eval_val/eval_true
- S8: catch std::out_of_range in lexNumber() and report a descriptive
  ParseError instead of a bare 'stod' message
2026-08-20 14:00:17 +03:00
aab91708de Set script.h import to relative path to avoid include errors downstream 2026-03-20 00:55:59 +03:00
188b1e8e24 Rename mantis to mbs 2026-03-19 23:53:14 +03:00
e0cd44d929 Minor fixes 2026-03-19 23:34:21 +03:00
68e60a3dc8 Initial Commit 2026-03-19 17:05:22 +03:00