ridl-syntax 0.9.0

The RIDL family lexer and grammar: a lossless concrete syntax tree over rowan.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Tuples: anonymous named-field composites used inline (typl reference ยง11).
package corpus.tuples

struct SensorBounds {
  range : (min: Speed, max: Speed)
}

struct Calibrated {
  window   : (start: Timestamp, stop: Timestamp)
  optional : (low: Speed, high: Speed)?
  nested   : (outer: Speed, inner: (a: Gain, b: Gain))
  mixed    : (value: Speed, raw: integer [0..255])
  unit     : ()
}