IDEMSInternational / rapidpro-flow-toolkit

Toolkit for using spreadsheets to create and modify RapidPro flows
GNU Lesser General Public License v2.1
3 stars 1 forks source link

CellParser: Support list nesting and quote escaping #62

Open geoo89 opened 1 year ago

geoo89 commented 1 year ago

Currently, two list separators are supported, allowing for a nesting depth of 2 (when encoding lists in cells). Consider adding brackets [ ] to support deeper nesting (note: brackets are for grouping, and do not define lists themselves). Examples: ▪ 1 → 1 ▪ [1] → 1 ▪ 1;2 → [1,2] ▪ [1;2] → [1,2] ▪ [1;2]; → [[1,2]] ▪ [1];[2] → [1,2] ▪ [1;];[2;] → [[1],[2]] ▪ [2|3];[3|4] → [[2,3], [3,4]] Also consider supporting quotation marks as an alternative to escaping special characters with backslashes.