Repository navigation
Commit 23faa2d
Markus
refactor(workflows): fold engine_lark into engine and reject word operators as paths
Move the Lark expression engine directly into engine.py now that
engine_current.py is gone, and remove the temporary engine-swap boundary test.
Exclude the reserved word operators (and, or, not, in) from the first segment of
PATH so they never lex as variable names when an operand is expected, and
include Lark's VisitError in _PARSE_ERRORS so int()/float() conversion errors
in _BuildAst.number surface as ValueError.
Assisted-by: Pi Coding Agent (model: gemini-4-argon, supervised)1 parent 7be9225 commit 23faa2d
6 files changed
Lines changed: 642 additions & 730 deletions
File tree
- src/specify_cli/workflows/expressions
- tests
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
0 commit comments