/** 语句:for 循环(解析在此,执行在 sequence-runner) */ const types = ['for'] function parse(action, parseContext) { const { parseActions } = parseContext const parsed = { type: 'for', variable: action.variable, indexVariable: action.indexVariable, times: action.times, array: action.array != null ? action.array : null, body: action.body ? parseActions(action.body) : [], } return Object.assign({}, action, parsed) } async function execute() { return { success: true } } module.exports = { types, parse, execute }