Brad Arant 7893746582 Implement $[&name] for environment-variable access
The env-var branch in Tag::getVariable was dead code - it checked for "%",
but that sigil was already claimed by the keyword-lookup branch earlier in
the same if/else chain, so it could never be reached. Switched to "&"
(unused by any other sigil) per explicit user decision.

Also fixed a real crash risk while making this reachable: getenv() returns
NULL for an unset variable, and MString's const char* constructor calls
strlen() unconditionally - now throws a clean "environment variable is not
set." error instead.

Verified via real jet-2.0 runs: a set variable reads and applies modifiers
(;toupper) correctly, an unset one throws cleanly rather than crashing.
Full regression suite and 30/30 compile check still pass.
2026-08-26 13:05:24 -07:00
2024-12-02 15:46:49 -08:00
2025-05-06 07:33:04 -07:00
2025-05-06 07:33:04 -07:00
2025-01-09 07:49:11 -08:00
2025-02-07 19:29:18 -08:00
2025-02-07 19:29:18 -08:00
2025-12-09 12:29:39 -08:00
2025-01-09 08:02:38 -08:00
2025-01-09 08:02:38 -08:00
2025-02-07 16:10:13 -08:00
2025-11-21 19:15:48 -08:00
2025-11-21 19:15:48 -08:00
2026-08-26 10:50:57 -07:00
2025-05-06 07:33:04 -07:00
2025-11-21 19:15:48 -08:00
2025-11-21 19:15:48 -08:00
2025-11-21 19:15:48 -08:00
2025-11-21 19:15:48 -08:00
2025-11-21 19:15:48 -08:00
2025-11-21 19:15:48 -08:00
S
Description
JET 2.0 core library.
40 MiB
0 Stars 0 Watchers 0 Forks
Languages
HTML 50.2%
TeX 18.7%
C++ 15%
JavaScript 7.5%
CSS 4.4%
Other 4.2%