ridl-syntax 0.11.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
16
17
18
// Packages, imports, aliases, and visibility (typl reference ยง3).
package corpus.imports

import veh.common.Speed
import marine.nav.Speed as MarineSpeed
import veh.regulatory.SpeedLimit

type Knots : kn [0.0..60.0 step 0.1]

internal type RawTicks : integer [0..65535]

internal const CALIBRATION : Knots = 1.5

struct Comparison {
  road  : Speed
  sea   : MarineSpeed
  limit : veh.regulatory.SpeedLimit
}