()
| 194 | } |
| 195 | |
| 196 | function parseCommandWord(){ |
| 197 | if (/^\s*$/.test(command)) return 'print'; // blank line just goes to the addressed line, which is what we do with print |
| 198 | var ret; |
| 199 | command = command.replace(idRE, function (match, c){ |
| 200 | ret = c; |
| 201 | return ''; |
| 202 | }); |
| 203 | if (!ret) throw new Error("No command string"); |
| 204 | return ret; |
| 205 | } |
| 206 | function parseVariant(){ |
| 207 | var variant = false; |
| 208 | command = command.replace(/^\s*!/, function (){ |