(input: &str)
| 116 | } |
| 117 | |
| 118 | fn entity_definition(input: &str) -> IResult<&str, EntityDefinition> { |
| 119 | map( |
| 120 | tuple(( |
| 121 | ws(identifier), |
| 122 | ws(tag("as")), |
| 123 | separated_list1(ws(char(',')), attribute), |
| 124 | ws(char(';')), |
| 125 | )), |
| 126 | |(name, _, attributes, _)| EntityDefinition { |
| 127 | name: name.to_string(), |
| 128 | attributes, |
| 129 | }, |
| 130 | )(input) |
| 131 | } |
| 132 | |
| 133 | #[derive(Debug, Clone)] |
| 134 | struct Role { |