src/parser.cpp

changeset 201
5d201ee4a9c3
parent 200
ca23936b455b
child 206
654661eab7f3
equal deleted inserted replaced
200:ca23936b455b 201:5d201ee4a9c3
223 const auto pair = parsePolygon<4>(tokens); 223 const auto pair = parsePolygon<4>(tokens);
224 const ConditionalEdge cedge{pair.first[0], pair.first[1], pair.first[2], pair.first[3]}; 224 const ConditionalEdge cedge{pair.first[0], pair.first[1], pair.first[2], pair.first[3]};
225 return Colored<ConditionalEdge>{cedge, pair.second}; 225 return Colored<ConditionalEdge>{cedge, pair.second};
226 } 226 }
227 default: 227 default:
228 throw BodyParseError{utility::format("bad line type '%1'", code)}; 228 throw BodyParseError{format("bad line type '%1'", code)};
229 } 229 }
230 } 230 }
231 catch(const BodyParseError& error) 231 catch(const BodyParseError& error)
232 { 232 {
233 return ParseError{line}; 233 return ParseError{line};

mercurial