An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.
feat(core): allow Unicode letters in identifiers
public
feat(core): allow Unicode letters in identifiers
The `Name` token was ASCII-only (`[A-Za-z_][A-Za-z_0-9]*`), so variable
references with umlauts or other Unicode letters failed to parse. Widen it to
`[\p{L}_][\p{L}\p{N}_]*` (LALRPOP's lexer uses the regex crate, which supports
`\p{…}` classes). Keyword precedence is unaffected: string-literal keywords
still win, and longest-match keeps e.g. `fortune` an identifier, not `for`.
Adds a `variable_resolution` test that binds a populated context and resolves
both an ASCII and an umlaut name — also the first test exercising top-level
`Expr::Var` resolution and unbound-name -> null.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>