ridl-syntax 0.4.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
15
// Collections: fixed arrays, bounded arrays, bounded maps (typl reference
// ยง12).
package corpus.collections

struct SensorBank {
  readings : [Speed; 8]
  faults   : [FaultCode; 0..32]
  metadata : [Label : Name; 0..32]
  sensors  : [Label : Speed; 1..8]
  remote   : [veh.common.Label : veh.common.Speed; 0..4]
  grid     : [[Gain; 4]; 4]
  history  : [Speed; 16]?
  spares   : [Speed?; 4]
  tuples   : [(min: Speed, max: Speed); 2]
}