(stageStr: string)
| 135 | } |
| 136 | |
| 137 | function extractInstructions(stageStr: string) { |
| 138 | return [...stageStr.matchAll(argEnvUserStatements)] |
| 139 | .map(match => { |
| 140 | const groups = match.groups!; |
| 141 | return { |
| 142 | instruction: groups.instruction.toUpperCase(), |
| 143 | name: groups.name, |
| 144 | value: groups.value1 || groups.value2, |
| 145 | }; |
| 146 | }); |
| 147 | } |
| 148 | |
| 149 | function getExpressionValue(option: string, isSet: boolean, word: string, value: string) { |
| 150 | const operations: Record<string, Function> = { |