Types
MappingGroup = object id*: string ## string identifier for the format ## empty allows everything mimeType*: string parents*: seq[MappingGroup] ## groups that this group is a "subset" of, does not need an effective meaning other than for filters ## in the future might be replaced with imperative declarations (i.e. `declareSubset(HoloJson, Json)`) ## but this might require using `macrocache` or other unstable nim features
- info to describe specific formats at compile time Source Edit
Consts
AnyMappingGroup = (id: "", mimeType: "", parents: [])
- matches any mapping group without having to be declared as parent Source Edit
Procs
proc `<=`(a, b: MappingGroup): bool {....raises: [], tags: [], forbids: [].}
- returns true if a is a subset of b Source Edit
proc getMappingGroupFromLiteral(obj: NimNode): MappingGroup {....raises: [], tags: [], forbids: [].}
- Source Edit