parse_data = options => (strings, ...args) => {
let string = String.raw(strings, ...args);
let cell = parseCell(string);
let name = cell.id.type === 'ViewExpression' ? cell.id.id.name : cell.id.name;
let modifier = null;
if (cell.id.type === 'ViewExpression') {
modifier = 'viewof';
}
return {
name: name,
value: {
type: 'code',
modifier: modifier,
value: string.slice(cell.body.start, cell.body.end)
},
...options
};
}