dmyersturnbull / pippin

Common Scala libraries.
Apache License 2.0
0 stars 0 forks source link

Grammar for expanded statements #24

Closed dmyersturnbull closed 7 years ago

dmyersturnbull commented 7 years ago

general structure

<expr>[<units>] ["if" <cond> ["else" <expr>[<units>]]] | ["every" <int>[<units>] "for" <width>[<units>]]  (@ | "evaluate at" <freq>[<units>]

The @ gives the evaluation frequency: The value stays the same from 0...(1/freq), then (1/freq)...(2/freq), ...

Example units are Hz, Mhz, etc. Their meaning should be passed to the parser.