jevlang
An experimental Python preprocessor that delegates conditional decisions to Jev
What does it do?
It uses Python's codec system to turn each block header into a runtime call. The runtime gathers current variables, surrounding source code, and the evaluation count before asking the backend for a decision. A call budget also limits costs from infinite loops.
Key features
- Handle if, elif, and while conditions using decisions from the Jev backend
- Pass the match subject and case patterns to Jev to select a branch
- Collect current variables, surrounding source code, and the line's evaluation count at runtime
- Display transformed source code in the CLI
- Set the backend and maximum call count through environment variables