microsoft / yardl

Tooling for streaming instrument data
https://microsoft.github.io/yardl/
MIT License
29 stars 5 forks source link

Support simple arithmetic expressions in computed fields #88

Closed johnstairs closed 8 months ago

johnstairs commented 8 months ago

Adding the following to computed field expressions:

  1. Floating-point literals (1.2)
  2. Simple arithmetic ((2 + 3) ** 4)
  3. Type conversions (myfield as int)

In a future change, we add more operators like | and << and support such expressions in enum and flag value definitions.

Addresses #73