(input: &str)
| 100 | } |
| 101 | |
| 102 | fn attribute(input: &str) -> IResult<&str, Attribute> { |
| 103 | map( |
| 104 | tuple((ws(identifier), ws(char(':')), ws(data_type))), |
| 105 | |(name, _, data_type)| Attribute { |
| 106 | name: name.to_string(), |
| 107 | data_type, |
| 108 | }, |
| 109 | )(input) |
| 110 | } |
| 111 | |
| 112 | #[derive(Debug)] |
| 113 | struct EntityDefinition { |