Files
loot-condition-interpreter/README.md
T
Oliver Hamlet b3435122dd Initial commit of experimental LOOT condition parser
Some FilePath functionality is missing, not all tests pass, and parsing
is incorrect for all structs.
2018-10-03 17:15:33 +01:00

912 B

loot-condition-interpreter

An experimental library for parsing and evaluating LOOT's metadata condition strings. Written in Rust. Very incomplete.

Goals:

  • Explore parsing conditions into an intermediate representation, then evaluating from that representation. LOOT's current parser evaluates conditions while parsing them, tightly coupling the two operations.
  • Explore more granular result caching. LOOT's current caching maps each condition string to its result, which can't handle case insensitivity (some parts of the condition string are case sensitive) or re-use results in compound conditions.
  • Explore round trip serialisation from the intermediate representation.
  • Evaluate the cost/benefit of integrating into LOOT, replacing the existing code.

Currently only condition parsing is complete. Evaluation is partially done, the rest hasn't yet been started.