(input: &str)
| 144 | } |
| 145 | |
| 146 | fn role(input: &str) -> IResult<&str, Role> { |
| 147 | map( |
| 148 | tuple((ws(identifier), ws(char(':')), ws(identifier))), |
| 149 | |(name, _, entity_type)| Role { |
| 150 | name: name.to_string(), |
| 151 | entity_type: entity_type.to_string(), |
| 152 | }, |
| 153 | )(input) |
| 154 | } |
| 155 | |
| 156 | fn relationship_definition(input: &str) -> IResult<&str, RelationshipDefinition> { |
| 157 | map( |