src/parser.cpp

changeset 23
3387a84ddaba
parent 21
0133e565e072
child 24
1a0faaaceb84
equal deleted inserted replaced
22:6da867fa5429 23:3387a84ddaba
337 const QString& line, 337 const QString& line,
338 const QStringList& tokens) 338 const QStringList& tokens)
339 { 339 {
340 Q_UNUSED(line) 340 Q_UNUSED(line)
341 constexpr int colorPosition = 1; 341 constexpr int colorPosition = 1;
342 constexpr int transformPosition = 2; // 2..10 342 constexpr int positionPosition = 2; // 2..4
343 constexpr int positionPosition = 11; // 11..13 343 constexpr int transformPosition = 5; // 5..13
344 constexpr int namePosition = 14; 344 constexpr int namePosition = 14;
345 if (tokens.size() != 15) 345 if (tokens.size() != 15)
346 { 346 {
347 throw BodyParseError{"wrong amount of tokens in a type-1 line"}; 347 throw BodyParseError{"wrong amount of tokens in a type-1 line"};
348 } 348 }

mercurial